Versions in this module Expand all Collapse all v0 v0.1.0 Apr 16, 2026 Changes in this version + type Case struct + ExpectedParentIDs []string + ID string + Question string + TopK int + type CaseResult struct + CaseID string + Found bool + NDCG float64 + Precision float64 + Rank int + Recall float64 + RetrievedParentIDs []string + type Metrics struct + HitAtK float64 + MRR float64 + NDCG float64 + Precision float64 + Recall float64 + TotalCases int + type Options struct + DefaultTopK int + EnableNDCG bool + EnablePrecision bool + EnableRecall bool + type Report struct + Cases []CaseResult + Metrics Metrics + func Run(ctx context.Context, runner RetrievalRunner, cases []Case, opts Options) (Report, error) + func (r Report) MarshalJSON() ([]byte, error) + type RetrievalRunner interface + Retrieve func(ctx context.Context, question string, topK int) (draftrag.RetrievalResult, error)