Versions in this module Expand all Collapse all v0 v0.1.0 Aug 13, 2026 Changes in this version + func LabelsFrom(ps *PairSet) map[string]string + func WritePairs(path string, ps *PairSet) error + type Agreement struct + Compared int + Confusion map[string]map[string]int + Same int + SameEffect int + Unanswered int + func CompareVerdicts(a, b *PairSet) Agreement + func (a Agreement) EffectRate() float64 + func (a Agreement) Rate() float64 + type CitationProblem struct + Claim string + Detail string + Source string + Verdict Verdict + type CitationReport struct + Mismatch int + OffsetDrift int + Problems []CitationProblem + Skipped int + Unreachable int + Verified int + func VerifyCitations(ctx context.Context, claims []*core.Claim, skipSources map[string]bool, ...) CitationReport + func (r CitationReport) Checked() int + type Corpus struct + Name string + Questions []Question + func LoadCorpus(path string) (*Corpus, error) + type CorpusReport struct + Aggregate []Metric + Corpus string + Results []QuestionResult + func (r CorpusReport) Failed() bool + type Delta struct + Baseline float64 + Change float64 + Current float64 + Name string + Unit string + func Compare(baseline, current []Metric) ([]Delta, []string) + type DumpOptions struct + All bool + Kinds []string + MaxCandidatesPerClaim int + type JudgeOptions struct + BatchSize int + Kinds []string + Labels map[string]string + Model string + type LabelledPair struct + A string + B string + Baseline string + Judged bool + Label string + Model string + Note string + Pair string + SourceA string + SourceB string + Why string + type Metric struct + Detail string + Name string + Reason string + Regression bool + Status Status + Unit string + Value float64 + func Aggregate(results []QuestionResult) []Metric + func CitationAccuracyFor(rep CitationReport) Metric + func CitationOffsetDriftFor(rep CitationReport) Metric + type Options struct + Citations SourceReader + type PairScore struct + Confusion map[string]map[string]int + Correct int + CorrectEffect int + Labelled int + Precision map[string]float64 + Recall map[string]float64 + Skipped int + Unlabelled int + func ScorePairs(ps *PairSet) PairScore + func (s PairScore) Accuracy() float64 + func (s PairScore) EffectAccuracy() float64 + type PairSet struct + Model string + Pairs []LabelledPair + Session string + func DumpPairs(ctx context.Context, st store.Store, sessionID string, opts DumpOptions) (*PairSet, error) + func JudgeSession(ctx context.Context, st store.Store, p llm.Provider, sessionID string, ...) (*PairSet, error) + func LoadPairs(path string) (*PairSet, error) + type PipelineReader struct + Extract extract.Extractor + Fetch fetch.Fetcher + func NewPipelineReader(f fetch.Fetcher, e extract.Extractor) *PipelineReader + func (p *PipelineReader) Text(ctx context.Context, rawURL string) (string, error) + type Question struct + ID string + Notes string + Question string + Tags []string + type QuestionResult struct + Card Scorecard + Claims int + Err string + ID string + Question string + SessionID string + Status string + Tags []string + func (q QuestionResult) Barren() bool + type Scorecard struct + Citations *CitationReport + Metrics []Metric + SessionID string + func Score(ctx context.Context, st store.Store, sessionID string, opts Options) (Scorecard, error) + func (s Scorecard) Failed() bool + type SourceReader interface + Text func(ctx context.Context, rawURL string) (string, error) + type Status string + const Blocked + const Measured + const NotApplicable + type StoredReader struct + Fallback SourceReader + SessionID string + Store store.Store + func NewStoredReader(st store.Store, sessionID string, fallback SourceReader) *StoredReader + func (r *StoredReader) Text(ctx context.Context, rawURL string) (string, error) + type Verdict string + const CitationMismatch + const CitationOffsetDrift + const CitationSkipped + const CitationUnreachable + const CitationVerified