Versions in this module Expand all Collapse all v0 v0.3.0 Jun 15, 2026 v0.2.0 May 17, 2026 Changes in this version + type Cache interface + Get func(ctx context.Context, q Query) (*Result, bool) + Set func(ctx context.Context, q Query, r *Result) error + type ContextItem struct + Content string + ID string + Metadata map[string]string + Provenance Provenance + Score float64 + Source string + type EntityHint struct + Confidence float64 + ID string + Name string + Type string + type Mode string + const ModeGraph + const ModeHybrid + const ModeVector + type Observer interface + OnGraphTraverse func(ctx context.Context, backend string, depth int, nodeCount int, latencyMS int64) + OnRerank func(ctx context.Context, model string, inputCount int, outputCount int, ...) + OnRetrieveEnd func(ctx context.Context, r *Result, err error) + OnRetrieveStart func(ctx context.Context, q Query) context.Context + OnVectorSearch func(ctx context.Context, backend string, topK int, resultCount int, ...) + type Option func(*Options) + type Options struct + Cache Cache + Observer Observer + Reranker Reranker + type Provenance struct + Backend string + GraphPath []string + Mode Mode + RerankerScore float64 + SimilarityScore float64 + type Query struct + Embedding []float32 + Entities []EntityHint + Filters map[string]string + MaxDepth int + Metadata map[string]any + MinScore float64 + Modes []Mode + Text string + TopK int + type Reranker interface + Rerank func(ctx context.Context, q Query, items []ContextItem) ([]ContextItem, error) + type Result struct + Items []ContextItem + Metadata ResultMetadata + Query Query + type ResultMetadata struct + CacheHit bool + LatencyMS int64 + ModesUsed []Mode + TotalCandidates int + type Retriever interface + Retrieve func(ctx context.Context, q Query) (*Result, error) + type RetrieverFunc func(ctx context.Context, q Query) (*Result, error) + func (f RetrieverFunc) Retrieve(ctx context.Context, q Query) (*Result, error)