Evaluate

Scorecard

This page explains how the scorecard is built, what each row measures, the thresholds behind each light, and where each cell's value comes from.

What it is

The scorecard is one grid that summarises the evals and benchmarks. It has one row per dimension (retrieval, facts, answers and so on) and one column per use case. Each cell is green, amber or red against a threshold stated on the row, and each cell names the file it came from. The code is in src/scorecard/.

sh
deno task scorecard

This writes tmp/scorecard.json and tmp/scorecard.md, and prints the Markdown table. The local demo at http://localhost:8641 shows the same data.

Types

ts
type Light = "green" | "amber" | "red" | "none";

type Threshold = {
  green: number;          // green at or past this value
  amber: number;          // amber at or past this value, red below it
  lowerIsBetter?: boolean; // flips the comparisons, for error rates, time and cost
  unit: string;
};

type ScoreCell = {
  light: Light;
  value?: number;
  label: string;   // the value as a person reads it, such as "92%" or "1.4 s"
  source: string;  // the eval or benchmark file, or report, it came from
  note?: string;
};

type ScoreRow = { dimension: string; describe: string; threshold: Threshold; cells: Record<string, ScoreCell> };
type ScorecardData = { at: string; useCases: { id: string; name: string; describe: string }[]; rows: ScoreRow[] };

A cell with no measurement has the light none, the label "Not measured", and a note saying why or what to run.

Use cases

Id Name What it covers
sf San Francisco City tables, places and Board meeting captions
media Video and PDF SFGovTV interviews and Board agendas and minutes
books General text Public domain books with generated questions, and routing across four domains
scans Scanned documents Damaged and real scans read by OCR
art Public domain art Museum records and images

Dimensions and thresholds

Dimension Question it answers Green Amber Unit
Retrieval Does search find the evidence a person would cite? 0.85 or more 0.70 or more Share of gold evidence found
Facts found Are the facts the answer needs in what was retrieved? 0.90 or more 0.75 or more Share of facts present
Answers Does the written answer state the facts? 0.90 or more 0.75 or more Share of facts present
Citations Does each cited source support the line that cites it? 0.90 or more 0.75 or more Share of cited lines the source supports
OCR How much of a scanned page is read correctly? 0.02 or less 0.05 or less Character error rate
Transcription How many words of speech are transcribed wrong? 0.05 or less 0.10 or less Word error rate
Routing Is each question sent down the right answer path? 0.90 or more 0.80 or more Share of questions sent to the right path
Latency How long until a person has an answer? 3 s or less 10 s or less Seconds per answer
Cost What does one answer cost us? $0.01 or less $0.05 or less Dollars per answer
Freshness How soon is a new file searchable? 120 s or less 600 s or less Seconds from new file to searchable

Anything past the amber bound is red. OCR latency in the scanned documents column uses its own bounds, 5 and 20 seconds a page, since it is paid once at ingest.

Where each cell comes from

A cell reads its value from the newest file that holds it. Values that only exist in a written report are entered in build.ts with that report named as the source.

Dimension Read from
Retrieval, Facts found The newest San Francisco eval run named *-hybrid-builtin.json in tmp/sf/evals/, best of the three paths; the media eval in tmp/sf/evals/youtube-pdf/media-with.json; recall at 10 for local/bge-small in tmp/bench/embed.json
Answers, Latency The agent path in the newest eval run ending prefetch-context.json, written by deno task sf eval --path agent --answer --prefetch context
Citations Entered from docs/2026-11-07-briefs/query-adapters-report.ai.md
OCR tmp/bench/ocr.json, Qwen2.5-VL 3B on heavily damaged scans
Transcription tmp/bench/transcribe.json, faster-whisper/small.en on LibriVox
Routing tmp/bench/route.json, the local cascade on the held-out set
Cost Entered: local models and the Claude subscription cost nothing per answer
Freshness Entered from tmp/review/ingest-warm.txt, a full cached rebuild

A recent build

Dimension San Francisco Video and PDF General text Scanned documents Public domain art
Retrieval Green, 86% Green, 88% Amber, 84% Not measured Not measured
Facts found Green, 98% Green, 94% Not measured Not measured Not measured
Answers Green, 92% Not measured Not measured Not measured Not measured
Citations Amber, 84% Not measured Not measured Not measured Not measured
OCR Not measured Not measured Not measured Green, 0.8% Not measured
Transcription Not measured Green, 3.2% Not measured Not measured Not measured
Routing Not measured Not measured Green, 93% Not measured Not measured
Latency Amber, 9.1 s Not measured Not measured Amber, 14.6 s a page Not measured
Cost Green, $0 Green, $0 Green, $0 Green, $0 Not measured
Freshness Green, 37 s Green, 37 s Not measured Not measured Not measured

Your numbers will differ with the eval runs and benchmarks you have on disk. Run the evals in Evals and golden sets and the benchmarks in Pipeline and adapters to fill more cells.

Reading it

  • A red or amber cell names its source file. Open it to see the rows or items behind the number.
  • Retrieval and facts found are measured before any answer model runs. If they are green and answers are amber, the problem is in generation, not search.