Documentation
¶
Overview ¶
Package qdrantstore contains an implementation of the llm.VectorStore interface using Qdrant.
Index ¶
- type Option
- func WithAPIKey(apiKey string) Option
- func WithCollectionName(collectionName string) Option
- func WithCollectionVectorSize(collectionVectorSize int) Option
- func WithContentKey(contentKey string) Option
- func WithEmbedder(embedder llm.Embedder) Option
- func WithHTTPClient(client *http.Client) Option
- func WithRawURL(rawURL string) Option
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
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 WithCollectionVectorSize ¶
WithCollectionVectorSize returns an Option for setting the collection vector size.
func WithContentKey ¶
WithContent returns an Option for setting field name of the document content in the Qdrant payload. Optional. Defaults to "content".
func WithEmbedder ¶
WithEmbedder returns an Option for setting the embedder to be used when adding documents or doing similarity search. Required.
func WithHTTPClient ¶
WithHTTPClient Set custom http client.
func WithRawURL ¶
WithRawURL returns an Option for setting the Qdrant instance URL. Example: 'http://localhost:63333'. Required.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}