Documentation
¶
Overview ¶
Package pgvector provides a PostgreSQL+pgvector-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
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 PostgreSQL with the pgvector extension.
func New ¶
New creates a PgVector store from an existing database connection. The database must have the pgvector extension enabled: CREATE EXTENSION IF NOT EXISTS vector;
func (*Store) CreateCollection ¶
Click to show internal directories.
Click to hide internal directories.