Versions in this module Expand all Collapse all v0 v0.1.15 Dec 18, 2025 v0.1.14 Nov 28, 2025 Changes in this version + type BaseIndex struct + type CosineDistance struct + func (CosineDistance) String() string + type Euclidean struct + func (Euclidean) String() string + type HNSWOptions struct + EfConstruction int + M int + func (h HNSWOptions) Options() string + type IVFFlatOptions struct + Lists int + func (i IVFFlatOptions) Options() string + type Index interface + Options func() string + type InnerProduct struct + func (InnerProduct) String() string + type SearchDocument struct + Content string + Distance float32 + LangchainMetadata string + type VectorStore struct + func NewVectorStore(engine cloudsqlutil.PostgresEngine, embedder embeddings.Embedder, ...) (VectorStore, error) + func (*VectorStore) NewBaseIndex(indexName, indexType string, strategy distanceStrategy, ...) BaseIndex + func (vs *VectorStore) AddDocuments(ctx context.Context, docs []schema.Document, _ ...vectorstores.Option) ([]string, error) + func (vs *VectorStore) ApplyVectorIndex(ctx context.Context, index BaseIndex, name string, concurrently bool) error + func (vs *VectorStore) DropVectorIndex(ctx context.Context, indexName string) error + func (vs *VectorStore) IsValidIndex(ctx context.Context, indexName string) (bool, error) + func (vs *VectorStore) ReIndex(ctx context.Context) error + func (vs *VectorStore) ReIndexWithName(ctx context.Context, indexName string) error + func (vs *VectorStore) SimilaritySearch(ctx context.Context, query string, _ int, options ...vectorstores.Option) ([]schema.Document, error) + type VectorStoreOption func(vs *VectorStore) + func WithContentColumn(contentColumn string) VectorStoreOption + func WithDistanceStrategy(distanceStrategy distanceStrategy) VectorStoreOption + func WithEmbeddingColumn(embeddingColumn string) VectorStoreOption + func WithIDColumn(idColumn string) VectorStoreOption + func WithK(k int) VectorStoreOption + func WithMetadataColumns(metadataColumns []string) VectorStoreOption + func WithMetadataJSONColumn(metadataJSONColumn string) VectorStoreOption + func WithSchemaName(schemaName string) VectorStoreOption