Skip to main content

agrag.eval

Public evaluation metrics for agrag, built on DeepEval and AgentEvals.

Needs the eval extra: pip install 'agentic-graphrag[eval]'.

Modules:

  • adapter – Adapters that let plain scoring functions report through DeepEval.
  • answer – Answer-quality metrics for agrag, scored from questions and reference answers.
  • extraction – Extraction quality: entity and relation-triple F1 against gold annotations.
  • judge – A DeepEval judge model backed by an agrag chat model.
  • resolution – Resolution quality: B-cubed and pairwise scores of mention clusters.
  • settings – Env-backed configuration for the eval judge model.
  • trajectory – Agent trajectory evaluation: read runs, check structure, judge quality.
  • verifier – Verifier calibration: does the verifier give the right verdict?

Classes:

  • ChatModelJudge – Wrap a LangChain chat model as a DeepEval judge.
  • CitationAccuracyMetric – Score whether each cited sentence follows from the evidence it cites.
  • CitationScoreBreakdown – Available precision, recall, and sentence-count fields for one score.
  • CitationSentenceRow – One cited sentence and its support verdict, for the report.
  • ClusterAssignment – A grouping of mentions, listed by position in the mention list.
  • EvalJudgeSettings – LLM client config for the eval judge.
  • ExtractionGold – One gold-annotated chunk of text.
  • MicroScores – Dataset scores pooled over every item, for entities and relations.
  • ScoreMetric – A DeepEval metric backed by a plain scoring function.
  • ScoreResult – The outcome of one scoring function call.
  • Scores – Precision, recall and F1.
  • SpanCapture – Capture one agent run's spans for read_trajectory.
  • Trajectory – The ordered steps of one agent run.
  • VerdictItem – One fixed verifier input with its gold verdict.
  • VerdictReport – Scores of predicted verdicts against gold verdicts.

Functions: