qdrant

package
v0.0.0-...-73e01d7 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNotFound      = "Not found"
	ErrAlreadyExists = "already exists"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QdrantClient

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

func NewQdrantClient

func NewQdrantClient(qdrantAddr, collection string, size uint64) *QdrantClient

func (*QdrantClient) Close

func (qc *QdrantClient) Close()

func (*QdrantClient) Collection

func (qc *QdrantClient) Collection() pb.CollectionsClient

func (*QdrantClient) CreateCollection

func (qc *QdrantClient) CreateCollection(name string, size uint64) error

func (*QdrantClient) CreatePoint

func (qc *QdrantClient) CreatePoint(uuid string, collection string, vector []float32, payload map[string]string) error

func (*QdrantClient) CreatePoints

func (qc *QdrantClient) CreatePoints(points []*pb.PointStruct) error

func (*QdrantClient) DeleteCollection

func (qc *QdrantClient) DeleteCollection(name string) error

func (*QdrantClient) Search

func (qc *QdrantClient) Search(vector []float32) ([]*pb.ScoredPoint, error)

Jump to

Keyboard shortcuts

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