qdrant

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 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) IsEmpty

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

func (*Index) LoadFromDocuments

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

func (*Index) SimilaritySearch

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

func (*Index) WithAPIKeyAndEdpoint

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

type Options

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

Jump to

Keyboard shortcuts

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