qdrant

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package qdrant implements the vectorstore.Store interface for Qdrant.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client implements vectorstore.Store for Qdrant.

func New

func New(ctx context.Context, addr string) (*Client, error)

New creates a new Qdrant client.

func (*Client) Close

func (c *Client) Close() error

Close releases resources.

func (*Client) Count

func (c *Client) Count(ctx context.Context, collection string) (int64, error)

Count returns the number of points in a collection.

func (*Client) DeleteCollection

func (c *Client) DeleteCollection(ctx context.Context, name string) error

DeleteCollection removes a collection and all its data.

func (*Client) EnsureCollection

func (c *Client) EnsureCollection(ctx context.Context, name string, dim int) error

EnsureCollection creates a collection if it doesn't exist.

func (*Client) Search

func (c *Client) Search(ctx context.Context, collection string, vector []float32, topK int) ([]vectorstore.Result, error)

Search performs similarity search and returns top-k results.

func (*Client) Upsert

func (c *Client) Upsert(ctx context.Context, collection string, points []vectorstore.Point) error

Upsert inserts or updates points in a collection.

Jump to

Keyboard shortcuts

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