Skip to main content

Module eval

Module eval 

Source
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§

EvalReport
Aggregated evaluation report.
GoldenDocument
A document in the golden set corpus.
GoldenQuery
A single query in the golden set.
GoldenSet
The complete golden evaluation set.
QueryMetrics
Metrics computed for a single query.

Enums§

EvalError
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.