LLM as judge
A second, independent model check that catches the extractor's mistakes.
InterfacesAPI SpecSections
API Spec Designed
- GET
/api/review/v1/admin/qualityJudge 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/candidatesAdd 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-01No new endpoints; the judge is a pipeline node inside Extraction.EXTRACTION-V2-E10-02No new endpoints.Fieldgainsjudge: {verdict, reason, evidence_quote}andconfidence_version; DocFlow passes them on when it creates the review task.REVIEW-V2-E10-03Review can compare judge and human because each review field stores the judge verdict it was created with.REVIEW-V2-E10-04No new endpoints.GET /api/review/v1/admin/accuracyand the judge vs human report addhidden_rowsand 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.