Expand description
Offline evaluation harness for retrieval quality.
Uses a deterministic HashEmbedder (from tests/common/mod.rs) so CI never
downloads models. Metrics: recall@k, MRR, nDCG@10, citation accuracy,
abstention correctness.
Structs§
- Eval
Report - Aggregated evaluation report.
- Golden
Document - A document in the golden set corpus.
- Golden
Query - A single query in the golden set.
- Golden
Set - The complete golden evaluation set.
- Query
Metrics - Metrics computed for a single query.
Enums§
- Eval
Error - Errors that can occur during evaluation.
Functions§
- build_
golden_ index - Build an in-memory index from the golden set documents. Returns the connection and a mapping from golden set document index to database chunk IDs.
- load_
golden_ set - Load a golden set from a JSON file.
- make_
eval_ pipeline - Create a SearchPipeline configured for evaluation with HashEmbedder.
- run_
eval - Run the full evaluation against a golden set.