Documentation
¶
Index ¶
- Constants
- type Store
- func (s *Store) Delete(ctx context.Context, tenantID, memoryID string) error
- func (s *Store) Search(ctx context.Context, tenantID string, embedding []float32, topK int) ([]domain.VectorstoreCandidate, error)
- func (s *Store) Upsert(ctx context.Context, tenantID, memoryID string, embedding []float32) error
- func (s *Store) UpsertBatch(ctx context.Context, upserts []domain.VectorUpsert) error
Constants ¶
View Source
const ( UpsertEmbeddingSQL = `` /* 227-byte string literal not displayed */ DeleteEmbeddingSQL = ` DELETE FROM memory_embeddings WHERE tenant_id = ? AND memory_id = ? ` ListEmbeddingsByTenantSQL = ` SELECT memory_id, embedding_json FROM memory_embeddings WHERE tenant_id = ? ` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.