Versions in this module Expand all Collapse all v0 v0.0.5 May 27, 2026 v0.0.4 May 27, 2026 Changes in this version + var ErrEmbedderWrongNumberVectors = errors.New("number of vectors from embedder does not match number of documents") + var ErrInvalidFilters = errors.New("invalid filters") + var ErrInvalidScoreThreshold = errors.New("score threshold must be between 0 and 1") + var ErrUnsupportedOptions = errors.New("unsupported options") + type AdditionnalValues struct + DocumentIDColumn ColumnValue + TenantIDColumn ColumnValue + func (option AdditionnalValues) GetDocumentID() string + func (option AdditionnalValues) GetTenantID() string + type ColumnValue struct + Name string + Value any + type OptionFilter struct + RolesColumn ColumnValue + TagsColumn ColumnValue + TenantIDColumn ColumnValue + func (option OptionFilter) GetRoles() []string + func (option OptionFilter) GetTags() []string + func (option OptionFilter) GetTenantID() string + type Store struct + QueryAttributes []string + func New(pgConnectionString, tableName, embeddingStoreColumnName, textColumnName string, ...) (Store, error) + func (store Store) AddDocuments(ctx context.Context, docs []schema.Document, options ...vectorstores.Option) ([]string, error) + func (store Store) SimilaritySearch(ctx context.Context, searchString string, numDocuments int, ...) ([]schema.Document, error)