Sample lookup — checks against 13 ground-truth reference records first. Exact match, no ambiguity, no LLM involved.
Dataset lookup + regex — for the other 72 synthetic records, a regex layer pulls policy IDs, claimant references, dates, cities, and amounts directly out of the text, then a rule-based summarizer assembles a grounded 1–3 sentence summary from what was actually extracted.
Dynamic mode — only for genuinely new, unseen notes does the pipeline call Ollama (gemma3:1b) for open-ended summarization, with the same regex extraction running underneath as a fallback if the model is unavailable.
The result: all 85 records in the synthetic dataset process end-to-end through regex and lookup alone — the LLM is only in the loop for notes that don't match anything the system has already seen. That's not a cost-cutting afterthought, it's the actual architecture. Reach for the deterministic, free, instant tool first; escalate to the slower, non-deterministic one only when the cheap path genuinely can't answer.