Products · LLM Extraction V2

LLM as judge

A second, independent model check that catches the extractor's mistakes.

Planned, not builtModule 11 of 15

InterfacesAPI SpecSections

API Spec Designed

  • GET/api/review/v1/admin/quality

    Judge vs human: agreement, confusion matrix, weakest fields (30 days). Admin

    Query days → 200 {agreement_rate, confusion_matrix, worst_fields[]}.

  • POST/api/review/v1/admin/quality/candidates

    Add judge/human disagreements to review.eval_candidates, inside Review's database. Admin, session only

    → 201 {created}: a count only, no values. Nothing leaves the service.

Notes

  • EXTRACTION-V2-E10-01 No new endpoints; the judge is a pipeline node inside Extraction.
  • EXTRACTION-V2-E10-02 No new endpoints. Field gains judge: {verdict, reason, evidence_quote} and confidence_version; DocFlow passes them on when it creates the review task.
  • REVIEW-V2-E10-03 Review can compare judge and human because each review field stores the judge verdict it was created with.
  • REVIEW-V2-E10-04 No new endpoints. GET /api/review/v1/admin/accuracy and the judge vs human report add hidden_rows and apply the rule.

Coming Soon...

Full inputs, constraints, error codes and sample requests and responses for each endpoint will appear here when this module's design is finalized.