Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkResult ¶
ChunkResult is a search result from chunk/vector search.
type GlobalSearchResult ¶
GlobalSearchResult aggregates community summaries.
type LocalSearchResult ¶
type LocalSearchResult struct {
Chunks []ChunkResult
Entities []*store.Entity
Rels []*store.Relationship
}
LocalSearchResult combines vector + graph results.
func LocalSearch ¶
func LocalSearch(ctx context.Context, st *store.Store, emb *embedder.Embedder, idx vectorindex.Index, query string, topK, graphDepth int) (*LocalSearchResult, error)
LocalSearch performs vector similarity search + graph walk.
If idx is non-nil and non-empty, the top-K chunk retrieval uses the HNSW index (O(log n)); otherwise LocalSearch falls back to the historical O(n) brute-force scan. This lets tests keep working without wiring an index, while production serve.go always passes one.
Click to show internal directories.
Click to hide internal directories.