Versions in this module Expand all Collapse all v0 v0.11.0 Nov 17, 2025 v0.10.0 Nov 17, 2025 v0.8.0 Nov 16, 2025 v0.7.0 Nov 15, 2025 v0.6.0 Nov 14, 2025 Changes in this version + type Document struct + Embedding []float32 + ID string + Metadata map[string]interface{} + Namespace string + Text string + type Embedder interface + EmbedText func(ctx context.Context, texts []string) ([][]float32, error) + type Hit struct + ID string + Metadata map[string]interface{} + Score float64 + type MemoryStore struct + func NewMemoryStore() *MemoryStore + func (s *MemoryStore) Close() error + func (s *MemoryStore) Delete(_ context.Context, ids []string) error + func (s *MemoryStore) Query(_ context.Context, q Query) ([]Hit, error) + func (s *MemoryStore) Upsert(_ context.Context, docs []Document) error + type MockEmbedder struct + Dim int + func NewMockEmbedder(dim int) *MockEmbedder + func (e *MockEmbedder) EmbedText(_ context.Context, texts []string) ([][]float32, error) + type OpenAIEmbedder struct + APIKey string + BaseURL string + Client *http.Client + Model string + func NewOpenAIEmbedder(baseURL, apiKey, model string) *OpenAIEmbedder + func (e *OpenAIEmbedder) EmbedText(ctx context.Context, texts []string) ([][]float32, error) + type Query struct + Filter map[string]interface{} + Namespace string + TopK int + Vector []float32 + type VectorStore interface + Close func() error + Delete func(ctx context.Context, ids []string) error + Query func(ctx context.Context, q Query) ([]Hit, error) + Upsert func(ctx context.Context, docs []Document) error