Versions in this module Expand all Collapse all v1 v1.0.1 Nov 9, 2023 v1.0.0 Nov 8, 2023 Changes in this version + var ErrEmbedderWrongNumberVectors = errors.New("number of vectors from embedder does not match number of documents") + var ErrEmptyResponse = errors.New("empty response") + var ErrInvalidOptions = errors.New("invalid options") + var ErrInvalidScoreThreshold = errors.New("score threshold must be between 0 and 1") + var ErrMissingTextKey = errors.New("missing text key in vector metadata") + type APIError struct + Message string + Task string + func (e APIError) Error() string + type Option func(p *Store) + func WithAPIKey(apiKey string) Option + func WithEmbedder(e embeddings.Embedder) Option + func WithEnvironment(environment string) Option + func WithIndexName(name string) Option + func WithNameSpace(nameSpace string) Option + func WithProjectName(name string) Option + func WithTextKey(textKey string) Option + type Store struct + func New(ctx context.Context, opts ...Option) (Store, error) + func (s Store) AddDocuments(ctx context.Context, docs []schema.Document, options ...vectorstores.Option) error + func (s Store) Close() error + func (s Store) SimilaritySearch(ctx context.Context, query string, numDocuments int, ...) ([]schema.Document, error)