qdrant

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 11 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 Distance

type Distance string

type Index

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

func New

func New(options Options, embedder index.Embedder) *Index

func (*Index) Add added in v0.0.11

func (q *Index) Add(ctx context.Context, item *index.Data) error

func (*Index) IsEmpty

func (q *Index) IsEmpty(ctx context.Context) (bool, error)

func (*Index) LoadFromDocuments

func (q *Index) LoadFromDocuments(ctx context.Context, documents []document.Document) error

func (*Index) Query added in v0.0.11

func (q *Index) Query(ctx context.Context, query string, opts ...option.Option) (index.SearchResults, error)

func (*Index) Search added in v0.0.11

func (q *Index) Search(ctx context.Context, values []float64, opts ...option.Option) (index.SearchResults, error)

func (*Index) WithAPIKeyAndEdpoint

func (q *Index) WithAPIKeyAndEdpoint(apiKey, endpoint string) *Index

type Options

type Options struct {
	CollectionName   string
	IncludeContent   bool
	IncludeValues    bool
	BatchUpsertSize  *int
	CreateCollection *CreateCollectionOptions
}

Jump to

Keyboard shortcuts

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