qdrant

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package qdrant provides a Qdrant vector database store for memoryrails.

Connects to a Qdrant server via its REST API for high-performance vector similarity search with filtering.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Store)

Option configures the store.

func WithAPIKey

func WithAPIKey(key string) Option

WithAPIKey sets authentication for Qdrant Cloud.

func WithHTTPClient

func WithHTTPClient(client *http.Client) Option

WithHTTPClient sets a custom HTTP client.

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store implements memoryrails.Store using Qdrant's REST API.

func New

func New(baseURL, collection string, dims int, opts ...Option) (*Store, error)

New creates a new Qdrant store. baseURL is the Qdrant server (e.g., "http://localhost:6333"). collection is the collection name to use.

func (*Store) Close

func (s *Store) Close() error

Close is a no-op for the REST-based client.

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, id string) error

func (*Store) Get

func (s *Store) Get(ctx context.Context, id string) (*memoryrails.Memory, error)

func (*Store) List

func (*Store) Put

func (s *Store) Put(ctx context.Context, mem *memoryrails.Memory) error

func (*Store) Search

func (s *Store) Search(ctx context.Context, embedding []float64, opts memoryrails.SearchOptions) ([]memoryrails.SearchResult, error)

Jump to

Keyboard shortcuts

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