Documentation
¶
Index ¶
- Constants
- type Config
- type Driver
- func (d *Driver) Add(ctx context.Context, docs []vector.Document) error
- func (d *Driver) Close() error
- func (d *Driver) Delete(ctx context.Context, ids []string) error
- func (d *Driver) Get(ctx context.Context, ids []string) ([]vector.Document, error)
- func (d *Driver) Query(ctx context.Context, embedding []float32, topK int) ([]vector.QueryResult, error)
Constants ¶
View Source
const ( DefaultCollectionName = "tapes" PayloadIDKey = "id" PayloadHashKey = "hash" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Hostname of the Qdrant server. Defaults to "localhost".
Host string
// gRPC port of the Qdrant server. Defaults to 6334.
Port int
// API key to use for authentication. Defaults to "".
APIKey string
// Whether to use TLS for the connection. Defaults to false.
UseTLS bool
// Name of the collection to use.
CollectionName string
// Dimensions for the embedding vectors.
Dimensions uint64
}
Click to show internal directories.
Click to hide internal directories.