Documentation
¶
Overview ¶
Package lancedb provides a LanceDB-backed VectorStore adapter for Chronos. LanceDB uses a REST API for its cloud/server deployment.
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
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 LanceDB's REST API.
func New ¶
New creates a LanceDB vector store client. baseURL is the LanceDB Cloud or self-hosted server endpoint. apiKey is the API key for authentication (empty for local). dbName is the database name.
func (*Store) CreateCollection ¶
Click to show internal directories.
Click to hide internal directories.