chromadb

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package chromadb provides a ChromaDB-backed VectorStore adapter for Chronos.

Index

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

func New(baseURL string) *Store

New creates a ChromaDB vector store client. baseURL is the ChromaDB server address (e.g., "http://localhost:8000").

func (*Store) Close

func (s *Store) Close() error

func (*Store) CreateCollection

func (s *Store) CreateCollection(ctx context.Context, name string, dimension int) error

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, collection string, ids []string) error

func (*Store) Search

func (s *Store) Search(ctx context.Context, collection string, query []float32, topK int) ([]storage.SearchResult, error)

func (*Store) Upsert

func (s *Store) Upsert(ctx context.Context, collection string, embeddings []storage.Embedding) error

func (*Store) WithDatabase

func (s *Store) WithDatabase(db string) *Store

WithDatabase sets the database name.

func (*Store) WithTenant

func (s *Store) WithTenant(tenant string) *Store

WithTenant sets the tenant for multi-tenant deployments.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL