AI Evaluation and Quality Assurance

Why this topic matters

Teams often evaluate LLM systems like demos: ask a few good questions, inspect a few impressive answers, and assume the system is improving. That pattern fails immediately in production. Real AI quality is multi-dimensional. A system can have strong prose quality and weak field extraction. It can have good average retrieval quality and terrible performance on rare-but-critical exceptions. It can have high reviewer satisfaction and still violate business rules.

Chroma sources emphasized structured testing, side-by-side evaluation, and human-grounded scoring. Current observability and evaluation platforms reflect the same trend: tracing, datasets, and evals are now part of the expected production stack rather than research extras.

Conceptual model / diagrams

Evaluation should happen at the same granularity as the system.


flowchart TD
    A[Request or document] --> B[Retrieval eval]
    B --> C[Generation or extraction eval]
    C --> D[Validator and rule eval]
    D --> E[Reviewer usefulness eval]
    E --> F[Release or rollback decision]

Core patterns or workflows

This section defines the evaluation layers that should exist before an AI workflow is trusted.

Evaluate by stage, not only by final answer

A production AI system should usually be evaluated on:

  • retrieval quality
  • field or output quality
  • schema validity
  • business-rule conformance
  • escalation quality
  • reviewer usefulness
  • latency and cost

This stage-wise view makes it possible to fix the failing layer instead of guessing.

Golden datasets and regression suites

A useful dataset should include:

  • clean examples
  • ambiguous examples
  • contradictory examples
  • low-signal examples
  • adversarial examples
  • previously observed incident examples

For ESG and index workflows, the rare edge cases often matter more than average-case performance because they are precisely where human analysts need support.

Task-specific metrics

Choose metrics that reflect the real deliverable:

  • Extraction: field accuracy, precision, recall, F1, evidence quality, unit correctness.
  • Classification and routing: precision, recall, escalation quality, false-negative rate.
  • Retrieval: recall@k, precision@k, citation usefulness, reranker lift.
  • Reviewer support: reviewer agreement, time saved, override rate, missing-context rate.
  • Business controls: schema-validity rate, policy violations, rule-conformance failures.

If a metric cannot explain whether a bad business outcome was likely, it is not enough on its own.

Judge-models and human review

Judge-model scoring is useful for scale, but only after it has been compared to human reviewers for the same task family. Judge models are strongest for:

  • ranking competing prompt outputs
  • rubric-based narrative quality
  • consistency checks across large candidate sets

They are weaker when the task requires nuanced domain interpretation or when the rubric itself is unstable.

Confidence thresholds and human review routing

Confidence routing should combine several signals where possible:

  • model confidence or self-rated certainty
  • schema validation outcome
  • business-rule validation outcome
  • retrieval quality signals
  • disagreement across models or extraction passes

This is more robust than trusting a single confidence number.

Production examples

ESG extraction evaluation

Evaluate an ESG extractor on:

  • field-level accuracy by disclosure type
  • scope correctness, such as issuer-level versus site-level
  • unit normalization
  • source-citation completeness
  • reviewer agreement on ambiguous disclosures

Index-support evaluation

Evaluate an index assistant on:

  • rule-selection accuracy
  • explanation usefulness for reviewers
  • false-confidence rate on ambiguous methodology cases
  • escalation behavior when source feeds disagree
  • absence of unsupported benchmark-affecting recommendations

Data-engineering copilot evaluation

Evaluate a data-engineering assistant on:

  • log or failure interpretation quality
  • SQL safety and rule conformance
  • quality of suggested next checks
  • improvement in review speed without increased incident risk

Risks / anti-patterns

  • Using only narrative quality scoring for extraction or rule-based tasks.
  • Treating judge-model agreement as ground truth.
  • Releasing prompt or model changes without rerunning a stable regression set.
  • Ignoring online drift because offline scores still look good.
  • Measuring only average quality while critical-case performance collapses.

Recommendations / operating rules

  • Define task-specific scorecards before tuning prompts or models.
  • Keep golden datasets under explicit ownership and revision control.
  • Calibrate judge-models against humans before trusting them for release decisions.
  • Add incident-derived cases to the regression suite continuously.
  • Use shadow or limited online rollout before full deployment in high-stakes workflows.

Domain-specific applications

  • ESG analytics needs strong extraction and evidence metrics because outputs may feed reports, scores, or client-facing products.
  • Index workflows need business-rule conformance and escalation quality because benchmark-affecting errors are operational and regulatory events.
  • Data-engineering copilots need usefulness metrics that do not reward unsafe automation.

Evaluation / validation considerations

Evaluation programs should define:

  • the dataset owner
  • the scoring rubric owner
  • the release threshold
  • the rollback threshold
  • the reviewer role for borderline cases

That governance is part of QA, not a separate concern.

Troubleshooting / failure modes

  • If the offline dataset keeps improving but production complaints increase, the dataset is no longer representative.
  • If human reviewers disagree heavily, the rubric is unstable or the task needs clearer approval rules.
  • If schema validity is high but business quality is low, the evaluation is overfocused on syntax.
  • If retrieval metrics are weak, generation tuning is not the main bottleneck.

AI Evaluation and Quality Assurance References

  • ChromaDB enrichment: LLM Prompt Engineering For Developers The Art and Science of Unlocking LLMs True Potential.pdf
  • ChromaDB enrichment: Prompt Engineering for LLMs The Art and Science of Building Large Language Model-Based Applications.epub
  • LangSmith | Evaluation concepts
  • Langfuse | Overview