Versions in this module Expand all Collapse all v0 v0.1.13 Feb 16, 2025 Changes in this version + var ErrEmbedderWrongNumberVectors = errors.New("number of vectors from embedder does not match number of documents") + var ErrInvalidScoreThreshold = errors.New("score threshold must be between 0 and 1") + var ErrUnsupportedOptions = errors.New("unsupported options") + type Option func(p *Store) + func WithIndex(index string) Option + func WithNumCandidates(numCandidates int) Option + func WithPath(path string) Option + type Store struct + func New(coll *mongo.Collection, embedder embeddings.Embedder, opts ...Option) Store + func (store *Store) AddDocuments(ctx context.Context, docs []schema.Document, opts ...vectorstores.Option) ([]string, error) + func (store *Store) SimilaritySearch(ctx context.Context, query string, numDocuments int, ...) ([]schema.Document, error)