Versions in this module Expand all Collapse all v0 v0.1.1 Sep 11, 2026 v0.1.0 Sep 8, 2026 Changes in this version + const CurrentIndexContentVersion + const EdgeCalls + const EdgeImports + const KindClass + const KindConst + const KindFunction + const KindInterface + const KindMethod + const KindType + const KindVar + var ErrNotFound = errors.New("store: not found") + var ErrReindexRequired = errors.New("store: reindex required") + type ChunkEmbedding struct + ChunkID int64 + Vector []float32 + type Edge struct + CallLine int + Dst int64 + Kind string + Src int64 + Weight float64 + type Embedding struct + SymbolID int64 + Vector []float32 + type File struct + Hash string + ID int64 + Language string + Mtime int64 + Path string + Size int64 + type ScoredSymbol struct + Score float32 + type Store interface + Close func() error + DeleteFile func(ctx context.Context, id int64) error + DeleteSymbolsByFile func(ctx context.Context, fileID int64) error + 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) + GetEdges func(ctx context.Context, symbolID int64) ([]Edge, error) + GetEmbedding func(ctx context.Context, symbolID int64) ([]float32, bool, error) + GetEmbeddingsByIDs func(ctx context.Context, ids []int64) (map[int64][]float32, error) + GetFileByPath func(ctx context.Context, path string) (*File, error) + GetFilesByIDs func(ctx context.Context, ids []int64) (map[int64]string, error) + GetSymbolsByIDs func(ctx context.Context, ids []int64) ([]Symbol, error) + ListAllEdges func(ctx context.Context) ([]Edge, error) + ListAllSymbolIDs func(ctx context.Context) ([]int64, error) + ListFiles func(ctx context.Context) ([]File, error) + ListSymbolMeta func(ctx context.Context) ([]Symbol, error) + ListSymbolsByFile func(ctx context.Context, fileID int64) ([]Symbol, error) + ListSymbolsByLanguage func(ctx context.Context, language string) ([]Symbol, error) + SaveEdge func(ctx context.Context, e Edge) error + SaveEdgeBatch func(ctx context.Context, edges []Edge) error + SaveFile func(ctx context.Context, f *File) (int64, error) + SaveSymbol func(ctx context.Context, s *Symbol) (int64, error) + SaveSymbolBatch func(ctx context.Context, symbols []Symbol) ([]int64, error) + SaveSymbolChunks func(ctx context.Context, chunks []SymbolChunk) ([]int64, error) + SearchByText func(ctx context.Context, query string, k int) ([]ScoredSymbol, error) + SearchByVector func(ctx context.Context, embedding []float32, topK int) ([]Symbol, error) + SearchByVectorScored func(ctx context.Context, vec []float32, k int) ([]ScoredSymbol, error) + UpsertChunkEmbeddingBatch func(ctx context.Context, embeddings []ChunkEmbedding) error + UpsertEmbedding func(ctx context.Context, symbolID int64, vec []float32) error + UpsertEmbeddingBatch func(ctx context.Context, embeddings []Embedding) error + type Symbol struct + BodyExcerpt string + Docstring string + EndLine int + FileID int64 + FullBody string + ID int64 + Kind string + Name string + QualifiedName string + Signature string + StartLine int + type SymbolBody struct + Body string + SHA256 string + SymbolID int64 + type SymbolChunk struct + ID int64 + StartLine int + SymbolID int64 + Text string + type SymbolToEmbed struct + Language string + Path string