Documentation
¶
Index ¶
- type SQLiteVectorStore
- func (s *SQLiteVectorStore) Close() error
- func (s *SQLiteVectorStore) CreateCollection(_ context.Context, _ string, _ int, _ *vector.CollectionConfig) error
- func (s *SQLiteVectorStore) DeleteBatchEmbeddings(ctx context.Context, ids []string) error
- func (s *SQLiteVectorStore) DeleteCollection(ctx context.Context, _ string) error
- func (s *SQLiteVectorStore) DeleteEmbedding(ctx context.Context, id string) error
- func (s *SQLiteVectorStore) GetCollectionInfo(ctx context.Context, name string) (*vector.CollectionInfo, error)
- func (s *SQLiteVectorStore) GetEmbedding(ctx context.Context, id string) ([]float32, map[string]interface{}, error)
- func (s *SQLiteVectorStore) GetEmbeddingCount(ctx context.Context) (int64, error)
- func (s *SQLiteVectorStore) Health(_ context.Context) error
- func (s *SQLiteVectorStore) ListCollections(_ context.Context) ([]string, error)
- func (s *SQLiteVectorStore) SimilaritySearch(ctx context.Context, queryEmbedding []float32, limit int, threshold float64) ([]*vector.SimilarityResult, error)
- func (s *SQLiteVectorStore) SimilaritySearchWithFilter(ctx context.Context, queryEmbedding []float32, filters map[string]interface{}, ...) ([]*vector.SimilarityResult, error)
- func (s *SQLiteVectorStore) StoreBatchEmbeddings(ctx context.Context, embeddings []*vector.EmbeddingData) error
- func (s *SQLiteVectorStore) StoreEmbedding(ctx context.Context, id string, embedding []float32, ...) error
- func (s *SQLiteVectorStore) UpdateEmbedding(ctx context.Context, id string, embedding []float32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLiteVectorStore ¶
type SQLiteVectorStore struct {
// contains filtered or unexported fields
}
SQLiteVectorStore implements VectorStore using a dedicated SQLite DB file with the sqlite-vec extension for KNN vector search. Use a separate DB file from SQLiteGraphStore for independent I/O performance.
func NewSQLiteVectorStore ¶
func NewSQLiteVectorStore(config *vector.VectorConfig) (*SQLiteVectorStore, error)
NewSQLiteVectorStore opens (or creates) a SQLite+sqlite-vec database at path. dimension is the size of the embedding vectors.
func (*SQLiteVectorStore) Close ¶
func (s *SQLiteVectorStore) Close() error
Close implements VectorStore.
func (*SQLiteVectorStore) CreateCollection ¶
func (s *SQLiteVectorStore) CreateCollection(_ context.Context, _ string, _ int, _ *vector.CollectionConfig) error
func (*SQLiteVectorStore) DeleteBatchEmbeddings ¶
func (s *SQLiteVectorStore) DeleteBatchEmbeddings(ctx context.Context, ids []string) error
func (*SQLiteVectorStore) DeleteCollection ¶
func (s *SQLiteVectorStore) DeleteCollection(ctx context.Context, _ string) error
func (*SQLiteVectorStore) DeleteEmbedding ¶
func (s *SQLiteVectorStore) DeleteEmbedding(ctx context.Context, id string) error
func (*SQLiteVectorStore) GetCollectionInfo ¶
func (s *SQLiteVectorStore) GetCollectionInfo(ctx context.Context, name string) (*vector.CollectionInfo, error)
func (*SQLiteVectorStore) GetEmbedding ¶
func (*SQLiteVectorStore) GetEmbeddingCount ¶
func (s *SQLiteVectorStore) GetEmbeddingCount(ctx context.Context) (int64, error)
func (*SQLiteVectorStore) Health ¶
func (s *SQLiteVectorStore) Health(_ context.Context) error
Health implements VectorStore.
func (*SQLiteVectorStore) ListCollections ¶
func (s *SQLiteVectorStore) ListCollections(_ context.Context) ([]string, error)
func (*SQLiteVectorStore) SimilaritySearch ¶
func (s *SQLiteVectorStore) SimilaritySearch(ctx context.Context, queryEmbedding []float32, limit int, threshold float64) ([]*vector.SimilarityResult, error)
func (*SQLiteVectorStore) SimilaritySearchWithFilter ¶
func (s *SQLiteVectorStore) SimilaritySearchWithFilter(ctx context.Context, queryEmbedding []float32, filters map[string]interface{}, limit int, threshold float64) ([]*vector.SimilarityResult, error)
func (*SQLiteVectorStore) StoreBatchEmbeddings ¶
func (s *SQLiteVectorStore) StoreBatchEmbeddings(ctx context.Context, embeddings []*vector.EmbeddingData) error
func (*SQLiteVectorStore) StoreEmbedding ¶
func (*SQLiteVectorStore) UpdateEmbedding ¶
Click to show internal directories.
Click to hide internal directories.