Versions in this module Expand all Collapse all v0 v0.1.12 Aug 22, 2024 Changes in this version + type Option func(*Options) + func WithDeduplicater(fn func(ctx context.Context, doc schema.Document) bool) Option + func WithEmbedder(embedder embeddings.Embedder) Option + func WithFilters(filters any) Option + func WithNameSpace(nameSpace string) Option + func WithScoreThreshold(scoreThreshold float32) Option + type Options struct + Deduplicater func(context.Context, schema.Document) bool + Embedder embeddings.Embedder + Filters any + NameSpace string + ScoreThreshold float32 + type Retriever struct + CallbacksHandler callbacks.Handler + func ToRetriever(vectorStore VectorStore, numDocuments int, options ...Option) Retriever + func (r Retriever) GetRelevantDocuments(ctx context.Context, query string) ([]schema.Document, error) + type VectorStore interface + AddDocuments func(ctx context.Context, docs []schema.Document, options ...Option) ([]string, error) + SimilaritySearch func(ctx context.Context, query string, numDocuments int, options ...Option) ([]schema.Document, error)