Versions in this module Expand all Collapse all v0 v0.1.0 Jul 18, 2026 Changes in this version + const DefaultK + const FixtureSchemaVersion + func RecordSession(ctx context.Context, eng *query.Engine, fixturePath string, opts RecordOptions, ...) error + type Aggregate struct + CitationAccuracy float64 + Found int + HallucinationHits int + HallucinationRate float64 + MRR float64 + RecallAt1 float64 + RecallAt3 float64 + RecallAt5 float64 + Total int + TotalHits int + func Summarize(perQ []PerQuery) Aggregate + type Expected struct + ExpectedKind string + File string + Kind types.SymbolKind + LineRange [2]int + Section string + Symbol string + type Fixture struct + Queries []Query + SchemaVersion string + func LoadFixture(path string) (*Fixture, error) + type Options struct + EnableBM25Rerank bool + K int + SrcRoot string + Threshold float64 + type PerQuery struct + CitationCorrect bool + FoundRank int + HallucinationCount int + HallucinationReason string + HitsReturned int + Intent string + QueryID string + ReciprocalRank float64 + TopHitFile string + TopHitScore float64 + func Score(q Query, resp *query.Response, k int, srcRoot string) PerQuery + type Query struct + Expected Expected + ID string + Intent string + Notes string + Pending bool + RecordedVia string + Timestamp string + type RecordOptions struct + EnableBM25Rerank bool + K int + SrcRoot string + Threshold float64 + type Result struct + Aggregate Aggregate + Fixture string + K int + PerQuery []PerQuery + func Run(ctx context.Context, eng *query.Engine, fx *Fixture, opts Options) (*Result, error)