Documentation ¶
Overview ¶
Package qdrant contains an implementation of the VectorStore interface using Qdrant.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidOptions = errors.New("invalid options")
ErrInvalidOptions is returned when the options given are invalid.
Functions ¶
Types ¶
type Option ¶
type Option func(p *Store)
Option is a function that configures an Options.
func WithAPIKey ¶
WithAPIKey returns an Option for setting the API key to authenticate the connection. Optional.
func WithCollectionName ¶
WithCollectionName returns an Option for setting the collection name. Required.
func WithContentKey ¶
WithContent returns an Option for setting field name of the document content in the Qdrant payload. Optional. Defaults to "content".
func WithEmbedder ¶
func WithEmbedder(embedder embeddings.Embedder) Option
WithEmbedder returns an Option for setting the embedder to be used when adding documents or doing similarity search. Required.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (Store) AddDocuments ¶
Click to show internal directories.
Click to hide internal directories.