Modules in LLM Extraction V1
Also in LLM Extraction
Eval harness
Measures the quality of every LLM output against labelled data, so a prompt or model change is judged by numbers, not impressions.
- Every metric in EVALS.md with pass or fail against its threshold, plus cost and latency
- A non-zero exit when a threshold fails or a metric drops from its baseline
- Recorded model responses, so later runs need no API calls
npm run eval -- --set dev
Designed, not built · story EXTRACTION-V1-E0-04 · Eval plan on GitHub
How LLM Extraction evolves
Every service starts by wrapping a cloud service behind its own contract, then replaces the inside one step at a time. A new product version keeps the same API contract: LLM Extraction V2 still answers on /api/extraction/v1. The exact steps are decided in each version's stories.
- Step 1. One model call with a strict output schema
- Step 2. Orchestration: multi-step pipeline, fan-out per document, resume on failure
- Step 3. Guardrails: schema validation, rule checks, source-quote verification, PII limits
- Step 4. Cost-efficient model routing
- Step 5. Latency management: batching, caching, parallelism, time budgets
- Step 6. Logs and observability
- Step 7. LLM-as-judge, compared with human decisions
What every service is built on (gateway, service template, design system, standards) is in Platform Core.