qdrant

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCollectionOptions

type CreateCollectionOptions struct {
	Dimension uint64
	Distance  Distance
	OnDisk    bool
}

type DB

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

func New

func New(options Options) *DB

func (*DB) Delete

func (d *DB) Delete(ctx context.Context, ids []string) error

func (*DB) Drop

func (d *DB) Drop(ctx context.Context) error

func (*DB) Insert

func (d *DB) Insert(ctx context.Context, datas []index.Data) error

func (*DB) IsEmpty

func (d *DB) IsEmpty(ctx context.Context) (bool, error)

func (*DB) Search

func (d *DB) Search(ctx context.Context, values []float64, options *option.Options) (index.SearchResults, error)

func (*DB) WithAPIKeyAndEdpoint

func (d *DB) WithAPIKeyAndEdpoint(apiKey, endpoint string) *DB

type Distance

type Distance string

type Options

type Options struct {
	CollectionName   string
	CreateCollection *CreateCollectionOptions
}

Jump to

Keyboard shortcuts

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