Documentation
¶
Overview ¶
Package chromadb provides a ChromaDB-backed VectorStore adapter for Chronos.
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) CreateCollection(ctx context.Context, name string, dimension int) error
- func (s *Store) Delete(ctx context.Context, collection string, ids []string) error
- func (s *Store) Search(ctx context.Context, collection string, query []float32, topK int, ...) ([]storage.SearchResult, error)
- func (s *Store) Upsert(ctx context.Context, collection string, embeddings []storage.Embedding) error
- func (s *Store) WithDatabase(db string) *Store
- func (s *Store) WithTenant(tenant string) *Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements storage.VectorStore using ChromaDB's REST API.
func New ¶
New creates a ChromaDB vector store client. baseURL is the ChromaDB server address (e.g., "http://localhost:8000").
func (*Store) CreateCollection ¶
func (*Store) WithDatabase ¶
WithDatabase sets the database name.
func (*Store) WithTenant ¶
WithTenant sets the tenant for multi-tenant deployments.
Click to show internal directories.
Click to hide internal directories.