The Local Model Ledger
Workflow Kitchen 2026-10-14 15:39 6 reads

Mistral Large 4 for Weekly Business Reports: From Raw Data to Human Approval

Mistral Large 4 for Weekly Business Reports: From Raw Data to Human Approval

This article outlines a practical RAG pipeline built with Mistral Large 4 for generating weekly business reports. By prioritizing validation, hybrid cross-source comparison, explicit conflict flags, and an unskippable human review surface, this architecture transforms messy raw inputs into reliable, fully inspectable reports while eliminating silent AI hallucinations.

Every Monday morning I used to open three spreadsheets, two CSV exports, and a Notion page full of half-updated notes, then spend the next ninety minutes turning them into a single coherent weekly report for a small client project. The report itself was never the hard part. The hard part was making sure the numbers still matched the source files after I had summarized, compared, and written the narrative. One transposed digit or one quietly dropped caveat and the whole document became a liability.

Last month I decided the process was ripe for a Mistral Large 4 workflow—provided the workflow ended with a human approval step that could not be skipped. This post describes the exact pipeline I now use. It is deliberately boring, deliberately reviewable, and deliberately designed so that a quiet model error cannot leave the building without someone noticing.

The Real Goal Is Not Speed Alone

Speed matters. I will not pretend otherwise. But the higher priority is that the final document remains faithful to the underlying data and that any uncertainty is visible before the report is sent. A system that produces a polished report in four minutes and occasionally invents a percentage point is worse than a slower system that forces me to confront the numbers.

The signature test I apply here is the same one I use everywhere else: if it only works in the demo, it isn’t in the workflow yet. A report-generation pipeline that looks perfect on the first clean run and drifts on the third week of real data is still a demo.

Source Materials and Constraints

The weekly inputs are deliberately messy because real inputs are messy:

  • A CSV of support-ticket volume and resolution times (exported from the ticketing system)

  • A second CSV of revenue and refund line items

  • A short Notion export of open risks and decisions made during the week

  • A plain-text list of “things that felt off” that I or the client noted in passing

None of these files share a common schema. Column names change occasionally. Sometimes a week’s export is missing a field. The pipeline has to tolerate that without inventing values.

I keep the raw files immutable. Every transformation is written to a dated working directory so I can always reconstruct what the model saw.

Pipeline Overview

The workflow has six stages:

  1. Ingestion and light validation — load the files, check for required columns, flag missing data.

  2. Structured extraction — Mistral Large 4 turns each source into a normalized JSON summary with explicit nulls for missing fields.

  3. Cross-source comparison — a second model call (or a deterministic script) surfaces contradictions or large week-over-week swings.

  4. Narrative draft — Mistral Large 4 writes the prose sections using only the normalized JSON and the comparison flags.

  5. Assembly — a deterministic template stitches the numbers and the narrative into a single Markdown report.

  6. Human approval surface — I review the full document side-by-side with the source summaries before anything is exported to PDF or sent.

Stages 2 and 4 use Mistral Large 4. Everything else is ordinary code or a simple checklist. The model is never given the final say.

Stage 1 & 2: Make the Data Boring Before the Model Touches It

I run a small Python validation script first. It checks that the expected columns exist, converts obvious date formats, and writes a “data quality” note that lists every missing or unexpected field. That note is passed to the model so it cannot claim a number is present when the validation step already marked it absent.

The extraction prompt is strict:

“You will receive raw CSV or text data. Produce a JSON object that follows the exact schema provided. Use null for any value that is not explicitly present. Do not calculate new metrics unless the schema requires it. Do not infer. Cite the source filename for every field.”

Temperature is 0.1. I ask for the JSON only—no surrounding prose. On the rare occasion the model still wraps the JSON in a code block or adds a comment, a tiny post-processor strips it. If the JSON fails to parse, the run is marked failed and I fall back to manual extraction for that source. This has happened twice in six weeks; both times the cause was an unexpectedly truncated CSV rather than model creativity.

A gritty, close-up photograph of scattered, coffee-stained CSV spreadsheets and handwritten notes on a cluttered desk, reflecting raw data inputs.

Stage 3: Surface the Conflicts Early

Once every source has a clean JSON summary, a short comparison step looks for:

  • Week-over-week changes larger than a configured threshold

  • Metrics that appear in one source but are missing or contradictory in another

  • Open risks from the Notion export that have no corresponding ticket or revenue impact

The comparison output is a plain list of flags. Those flags are injected into the narrative prompt so the model is forced to acknowledge them rather than smooth them away. This is the single most effective guardrail in the whole pipeline. Without it the model tends to produce a reassuring story; with it the story has to include the uncomfortable parts.

Stage 4: Narrative Generation Under Tight Constraints

The prompt for the prose sections is deliberately narrow:

“Using only the provided JSON summaries and the list of flags, write the weekly narrative. Structure: (1) Key numbers, (2) Notable changes, (3) Open risks, (4) Recommended attention items. Every factual claim must be traceable to a field in the JSON. If a flag indicates uncertainty or contradiction, state it explicitly. Do not add recommendations that are not supported by the data. Keep the total narrative under 400 words.”

I run this stage twice and keep both drafts when any flag is present. The extra cost is negligible; the chance of catching a soft omission is not.

Stage 5 & 6: Assembly and the Non-Negotiable Review

A Jinja-style template (or even a simple Python string assembly) combines the key numbers table with the narrative. The result is a Markdown file that still contains the original flags as HTML comments or a clearly marked “Reviewer notes” section at the top. I open that file side-by-side with the normalized JSON summaries and the raw CSVs. The review usually takes eight to twelve minutes. Most weeks I make only light edits—tightening a sentence or restoring a caveat the model softened. Occasionally I reject a section entirely and rewrite it.

Only after I explicitly mark the document “approved” does a final script produce the PDF and the email draft. There is no automatic send.

Observed Behavior Over Six Weeks

Across the six weekly runs I have logged:

  • Extraction fidelity on required numeric fields stayed above 98 % when the source files were complete.

  • The model never invented a revenue or ticket number that was absent from the validated JSON.

  • Soft language still appears: the model occasionally turns “refund rate rose from 1.8 % to 2.4 %” into “refund rate increased modestly.” I now treat any adverb of degree as a signal to look at the raw number.

  • When conflict flags were present, the narrative included them on every run. When I experimentally removed the flags from the prompt, the model smoothed the same conflicts in three out of three trials. The flags are doing real work.

  • Total wall-clock time from raw files to approved PDF is now 25–35 minutes, most of it the human review. The model stages themselves finish in under two minutes.

The time saving is real. The larger win is that I no longer wonder whether a number in the final report still matches the export.

Practical Cost and Maintenance Notes

API cost per weekly run is well under a dollar even with the double generation on flagged weeks. The ongoing maintenance is the validation script and the review discipline. When a new column appears in an export I update the schema and the validation rules once; the model does not have to “learn” the new field through prompt engineering. That separation keeps the system stable.

I also keep a short failure log: every time I edit or reject a section I write one sentence about why. After six weeks the log already shows two recurring patterns—softening of percentage changes and occasional omission of a low-severity risk that had no numeric impact. Both are now called out explicitly in the prompt.

What I Still Don’t Know

I have not yet stress-tested the same pipeline with a larger set of source files or with data that contains deliberate inconsistencies beyond the normal weekly noise. I have not measured how the extraction stage behaves under local quantization. I have not compared Mistral Large 4’s narrative quality on this task against a smaller model that might be cheaper for the draft stage. Those experiments are queued.

The current design is good enough for the weekly reports I actually have to produce. It is not fully automatic, and that is intentional. Fully automatic is how a quiet percentage-point error becomes a client conversation I would rather avoid.

A close-up photograph showing a split-screen interface comparing structured JSON data with a highlighted narrative report for meticulous human review and final approval.

Checklist If You Want to Replicate This

  • Keep raw files immutable and versioned by date.

  • Validate and normalize before the model sees the data.

  • Force nulls for missing values; never let the model impute.

  • Inject explicit conflict or anomaly flags into the narrative prompt.

  • Assemble the final document deterministically.

  • Require a human approval gate that cannot be bypassed by the pipeline.

  • Log every edit and rejection; patterns appear only when you write them down.

The question is not whether Mistral Large 4 can write a smooth weekly report. It can. The question is whether you want to maintain a process that still lets you trust the numbers when the report leaves your desk. On the evidence of the last six weeks, this pipeline passes that test—provided the human approval step stays in place.

Here is what I controlled, here is what changed, and here is what I still don’t know. The controlled part is the pipeline above. The rest continues to be measured every Monday.

Last updated — 2026-10-14 15:39
Comments [ 0 ]

No comments yet.

Leave a comment