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 ¶
- type Option
- type Store
- func (s *Store) Close() error
- func (s *Store) Delete(ctx context.Context, id string) error
- func (s *Store) Get(ctx context.Context, id string) (*memoryrails.Memory, error)
- func (s *Store) List(ctx context.Context, opts memoryrails.ListOptions) ([]*memoryrails.Memory, error)
- func (s *Store) Put(ctx context.Context, mem *memoryrails.Memory) error
- func (s *Store) Search(ctx context.Context, embedding []float64, opts memoryrails.SearchOptions) ([]memoryrails.SearchResult, error)
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 ¶
WithAPIKey sets authentication for Qdrant Cloud.
func WithHTTPClient ¶
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 ¶
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) List ¶
func (s *Store) List(ctx context.Context, opts memoryrails.ListOptions) ([]*memoryrails.Memory, error)
func (*Store) Search ¶
func (s *Store) Search(ctx context.Context, embedding []float64, opts memoryrails.SearchOptions) ([]memoryrails.SearchResult, error)
Click to show internal directories.
Click to hide internal directories.