sqlite

package
v0.0.0-...-dbba89f Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (s *SQLiteVectorStore) GetEmbedding(ctx context.Context, id string) ([]float32, map[string]interface{}, error)

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 (s *SQLiteVectorStore) StoreEmbedding(ctx context.Context, id string, embedding []float32, metadata map[string]interface{}) error

func (*SQLiteVectorStore) UpdateEmbedding

func (s *SQLiteVectorStore) UpdateEmbedding(ctx context.Context, id string, embedding []float32) error

Jump to

Keyboard shortcuts

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