Versions in this module Expand all Collapse all v0 v0.3.0 Jun 15, 2026 Changes in this version + type Collection struct + Description string + Name string + VectorIndex vector.Index + type Document struct + Content string + CreatedAt time.Time + Embedding []float32 + ID string + Metadata map[string]string + UpdatedAt time.Time + type Manager struct + func NewManager(cfg ManagerConfig) *Manager + func (m *Manager) Count(ctx context.Context, collectionName string) (int, error) + func (m *Manager) CreateCollection(ctx context.Context, name, description string) (*Collection, error) + func (m *Manager) Delete(ctx context.Context, collectionName, key string) error + func (m *Manager) DeleteCollection(ctx context.Context, name string) error + func (m *Manager) Get(ctx context.Context, collectionName, key string) (*Document, error) + func (m *Manager) GetCollection(name string) (*Collection, error) + func (m *Manager) GetOrCreateCollection(ctx context.Context, name, description string) (*Collection, error) + func (m *Manager) List(ctx context.Context, collectionName string, limit, offset int) ([]Document, error) + func (m *Manager) ListCollections() []string + func (m *Manager) Search(ctx context.Context, collectionName, query string, opts SearchOptions) ([]SearchResult, error) + func (m *Manager) Store(ctx context.Context, collectionName, key string, doc *Document) error + type ManagerConfig struct + Embedder vector.Embedder + type SearchOptions struct + Filters map[string]string + IncludeMetadata bool + MinScore float64 + TopK int + type SearchResult struct + Document Document + Score float64 v0.2.0 May 17, 2026 Changes in this version + type HashEmbedder struct + func NewHashEmbedder(dimensions int) *HashEmbedder + func (e *HashEmbedder) Embed(ctx context.Context, text string) ([]float32, error) + func (e *HashEmbedder) EmbedBatch(ctx context.Context, texts []string) ([][]float32, error) + func (e *HashEmbedder) Model() string + type KnowledgeGraph struct + func NewKnowledgeGraph(name string) *KnowledgeGraph + func (kg *KnowledgeGraph) AddEdge(ctx context.Context, edge graph.Edge) error + func (kg *KnowledgeGraph) AddEdgeBatch(ctx context.Context, edges []graph.Edge) error + func (kg *KnowledgeGraph) AddNode(ctx context.Context, node graph.Node) error + func (kg *KnowledgeGraph) AddNodeBatch(ctx context.Context, nodes []graph.Node) error + func (kg *KnowledgeGraph) DeleteEdge(ctx context.Context, from, to, edgeType string) error + func (kg *KnowledgeGraph) DeleteNode(ctx context.Context, id string) error + func (kg *KnowledgeGraph) DeleteNodeBatch(ctx context.Context, ids []string) error + func (kg *KnowledgeGraph) EdgeCount() int + func (kg *KnowledgeGraph) FindNodes(ctx context.Context, nodeType string, filters map[string]string) ([]graph.Node, error) + func (kg *KnowledgeGraph) Name() string + func (kg *KnowledgeGraph) NodeCount() int + func (kg *KnowledgeGraph) Traverse(ctx context.Context, startNodes []string, opts graph.TraversalOptions) (*graph.TraversalResult, error) + func (kg *KnowledgeGraph) UpsertEdge(ctx context.Context, edge graph.Edge) error + func (kg *KnowledgeGraph) UpsertEdgeBatch(ctx context.Context, edges []graph.Edge) error + func (kg *KnowledgeGraph) UpsertNode(ctx context.Context, node graph.Node) error + func (kg *KnowledgeGraph) UpsertNodeBatch(ctx context.Context, nodes []graph.Node) error + type VectorIndex struct + func NewVectorIndex(name string) *VectorIndex + func (idx *VectorIndex) Count() int + func (idx *VectorIndex) Delete(ctx context.Context, id string) error + func (idx *VectorIndex) DeleteBatch(ctx context.Context, ids []string) error + func (idx *VectorIndex) Insert(ctx context.Context, node vector.Node) error + func (idx *VectorIndex) InsertBatch(ctx context.Context, nodes []vector.Node) error + func (idx *VectorIndex) Name() string + func (idx *VectorIndex) Search(ctx context.Context, embedding []float32, k int, filters map[string]string) ([]vector.SearchResult, error) + func (idx *VectorIndex) Upsert(ctx context.Context, node vector.Node) error + func (idx *VectorIndex) UpsertBatch(ctx context.Context, nodes []vector.Node) error