Versions in this module Expand all Collapse all v0 v0.0.0 Aug 12, 2025 Changes in this version + var ErrNotADirectory = errors.New("db folder is not a directory") + func New(em embeddings.Embedder, opts ...Option) (vectorstores.VectorStore, error) + type Option func(*storageOptions) + func WithCollection(collName string) Option + func WithDBPath(dbPath string) Option + func WithLogger(logger *slog.Logger) Option + type Storage struct + func (s *Storage) AddDocuments(ctx context.Context, docs []schema.Document, options ...vectorstores.Option) ([]string, error) + func (s *Storage) SimilaritySearch(ctx context.Context, query string, numDocuments int, ...) ([]schema.Document, error)