Versions in this module Expand all Collapse all v0 v0.1.1 Sep 11, 2026 Changes in this version + type RelatedFile struct + File string + Score float64 + Shared []string + Symbols []string + func FindRelatedEdits(ctx context.Context, st Store, changed []string, exclude []string, limit int) ([]RelatedFile, error) type Retriever + func (r *Retriever) FindRelatedEdits(ctx context.Context, changed, exclude []string, limit int) ([]RelatedFile, error) v0.1.0 Sep 8, 2026 Changes in this version + const EvidenceGapMarker + const WeakMatchRelevance + var DefaultBodyFTSWeight float32 = 1.0 + var DefaultChunkVecWeight float32 = 0 + var DefaultFTSWeight float32 = 1.0 + var DefaultIdentFTSWeight float32 = 0 + func LooksLikeLocator(query string) bool + func PersonalizedPageRank(g *Graph, seeds map[int64]float32, damping float32, maxIter int) (map[int64]float32, int) + type BodySegment struct + Lines int + StartLine int + type Embedder interface + Embed func(ctx context.Context, texts []string) ([][]float32, error) + type FlowRef struct + Distance int + File string + Kind string + Lines string + QualifiedName string + Via string + type Graph struct + NodeIDs []int64 + NodeIdx map[int64]int + NumNodes int + OutEdges [][]int + func BuildGraph(symbolIDs []int64, edges []store.Edge) *Graph + type IntentRanker interface + IsIntentRanker func() + type Mode int + const ModeHybrid + const ModeVectorOnly + type NextStepsHints struct + IfTopCorrect string + IfUnsure string + ToExplore []string + type OutputMode int + const OutputModeAnswer + const OutputModeExplore + const OutputModeMinimal + func ParseOutputMode(s string) (OutputMode, error) + func (m OutputMode) String() string + type Ranker interface + Rank func(query string, candidates []ScoredResult) []ScoredResult + type RankingFeatures struct + BodyOverlap float32 + EffectiveAlpha float32 + FTSSeed float32 + HubPenalty float32 + IsConstructor float32 + KindFunction float32 + KindMethod float32 + KindOverlap float32 + NameOverlap float32 + PPR float32 + PPRRank int + PPRScore float32 + PathOverlap float32 + SeedRank int + SeedScore float32 + ShortNameOverlap float32 + SignatureOverlap float32 + VectorSeed float32 + func (f RankingFeatures) AsMap() map[string]float32 + type Request struct + AdaptiveRerank bool + Alpha float32 + AlphaSet bool + AnchorExpand int + BudgetTokens int + FullBodyResults int + IncludeTrivial bool + LazyRerank bool + LiteralSlots int + MaxResults int + Mode Mode + OutputMode OutputMode + PreserveFullBodies bool + Query string + RerankK int + SeedK int + SkipIntent bool + SkipRerank bool + TestFloor int + type Reranker interface + Rerank func(ctx context.Context, query string, candidates []ScoredResult) ([]ScoredResult, error) + type Result struct + ExpansionSymbols []ScoredResult + NextSteps *NextStepsHints + RetrievalHealth *RetrievalHealth + Stats Stats + Structure *StructureView + Symbols []ScoredResult + TotalTokens int + type RetrievalHealth struct + CandidatesSeen int + Confidence string + Suggestion string + TiedCandidates int + TopScoreGap float32 + type Retriever struct + func NewRetriever(s Store, e Embedder, log *slog.Logger) *Retriever + func NewRetrieverWithRankers(s Store, e Embedder, reranker Reranker, ranker Ranker, log *slog.Logger) *Retriever + func NewRetrieverWithReranker(s Store, e Embedder, reranker Reranker, log *slog.Logger) *Retriever + func (r *Retriever) GetSymbolBody(ctx context.Context, symbolID int64) (store.SymbolBody, error) + func (r *Retriever) Retrieve(ctx context.Context, req Request) (Result, error) + func (r *Retriever) SetEscalator(esc Reranker) + type ScoredResult struct + AlsoVia []string + Body string + BodyEndLine int + BodySegments []BodySegment + BodyStartLine int + Callees []SymbolRef + CalleesTotal int + Callers []SymbolRef + CallersTotal int + CompanionFiles []string + Confidence string + Detail string + Docstring string + EndLine int + Features RankingFeatures + File string + FlowContext []FlowRef + Kind string + QualifiedName string + Relevance float32 + Score float32 + Siblings []SymbolRef + Signature string + StartLine int + SymbolID int64 + Tests []SymbolRef + Visibility string + Why string + func Pack(symbols []ScoredResult, budgetTokens int, fullBodyCount int) ([]ScoredResult, int) + type Stats struct + EffectiveAlpha float32 + EmbedDuration time.Duration + EscalateDuration time.Duration + Escalated bool + EvidenceDuration time.Duration + GraphCtxDuration time.Duration + GraphDuration time.Duration + GraphEdges int + GraphNodes int + IntentDuration time.Duration + PPRDuration time.Duration + PPRIterations int + PackDuration time.Duration + RerankDuration time.Duration + RerankLazySkipped bool + SeedCount int + SeedDuration time.Duration + Total time.Duration + type Store interface + GetCalleeEdges func(ctx context.Context, srcIDs []int64, limitPerSymbol int) (map[int64][]int64, error) + GetCallerEdges func(ctx context.Context, dstIDs []int64, limitPerSymbol int) (map[int64][]int64, error) + GetEmbeddingsByIDs func(ctx context.Context, ids []int64) (map[int64][]float32, error) + GetFilesByIDs func(ctx context.Context, ids []int64) (map[int64]string, error) + GetSymbolBody func(ctx context.Context, symbolID int64) (store.SymbolBody, error) + GetSymbolsByIDs func(ctx context.Context, ids []int64) ([]store.Symbol, error) + ListAllEdges func(ctx context.Context) ([]store.Edge, error) + ListAllSymbolIDs func(ctx context.Context) ([]int64, error) + ListSymbolMeta func(ctx context.Context) ([]store.Symbol, error) + SearchByBodyText func(ctx context.Context, query string, k int) ([]store.ScoredSymbol, error) + SearchByChunkVector func(ctx context.Context, vec []float32, k int) ([]store.ScoredSymbol, error) + SearchByText func(ctx context.Context, query string, k int) ([]store.ScoredSymbol, error) + SearchByVectorScored func(ctx context.Context, vec []float32, k int) ([]store.ScoredSymbol, error) + type StructureView struct + PackageView map[string][]string + Summary string + type SymbolRef struct + CallLine int + CallSite string + File string + Kind string + Lines string + PathStatus string + QualifiedName string + type TextScorer interface + ScoreTexts func(ctx context.Context, query string, docs []string) ([]float32, error)