qdrantstore

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package qdrantstore provides the Qdrant vector store backend for Genie's semantic memory. It wraps the trpc-agent-go Qdrant driver and exposes a Config + New() constructor so the parent vector package can build a Qdrant store from user configuration.

Separating this into its own package enables independent unit testing without pulling in the full vector store machinery or other backends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a Qdrant vector store instance based on the given Config and embedder. This function exists to initialize Qdrant with proper configuration options. Without it, Qdrant support would not be available and users would be limited to in-memory stores only.

Types

type Config

type Config struct {
	// Host is the Qdrant server hostname. Defaults to "localhost" if not specified.
	Host string `yaml:"host,omitempty" toml:"host,omitempty"`
	// Port is the Qdrant gRPC port. Defaults to 6334 if not specified.
	Port int `yaml:"port,omitempty" toml:"port,omitempty,omitzero"`
	// APIKey is the API key for Qdrant Cloud authentication.
	APIKey string `yaml:"api_key,omitempty" toml:"api_key,omitempty"`
	// UseTLS enables TLS for secure connections (required for Qdrant Cloud).
	UseTLS bool `yaml:"use_tls,omitempty" toml:"use_tls,omitempty,omitzero"`
	// CollectionName is the name of the collection to use/create in Qdrant.
	// Defaults to "trpc_agent_documents" if not specified.
	CollectionName string `yaml:"collection_name,omitempty" toml:"collection_name,omitempty"`
	// Dimension is the vector dimension. Must match the embedder's dimension.
	// Defaults to 1536 if not specified.
	Dimension int `yaml:"dimension,omitempty" toml:"dimension,omitempty,omitzero"`
}

Config holds the configuration for connecting to a Qdrant instance. Without this config type, Qdrant connection settings would have to be scattered across multiple top-level fields, making configuration less readable and harder to extend.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL