Skip to main content

citationGrader

@forge/monorepo


@forge/monorepo / backend/src / citationGrader

Variable: citationGrader

const citationGrader: Grader

Defined in: backend/src/evaluation/graders.ts:173

cites-source — a citation part, optionally naming a source.

Deterministic since #137, which is the interesting part. Before citations were structured, "did it cite" meant a model reading prose for a footnote — a judgement call, and an expensive one on every case. A citation part carries its source and its excerpt, so this is a field lookup: the structure paid for itself in the cost of the gate.