qdrant

package
v0.0.0-...-2c27dae Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	abstract.ConfigurableConnector
	// contains filtered or unexported fields
}

func NewQdrantConnector

func NewQdrantConnector() *Connector

func (*Connector) CloseConnection

func (c *Connector) CloseConnection()

func (*Connector) CreateCollection

func (c *Connector) CreateCollection(parentCtx context.Context) (err error)

func (*Connector) CreateFieldIndex

func (c *Connector) CreateFieldIndex(parentCtx context.Context, fieldName string, fieldType *pb.FieldType) (err error)

func (*Connector) DeleteCollection

func (c *Connector) DeleteCollection(parentCtx context.Context) error

func (*Connector) DeletePointsByIds

func (c *Connector) DeletePointsByIds(parentCtx context.Context, pointIds ...*pb.PointId) (err error)

func (*Connector) DeletePointsByName

func (c *Connector) DeletePointsByName(parentCtx context.Context, name string) (err error)

func (*Connector) GetPointsById

func (c *Connector) GetPointsById(parentCtx context.Context, pointIds ...*pb.PointId) ([]*pb.RetrievedPoint, error)

func (*Connector) GetPointsHavingName

func (c *Connector) GetPointsHavingName(parentCtx context.Context, name string) ([]*pb.RetrievedPoint, error)

func (*Connector) InitConnection

func (c *Connector) InitConnection(def *conf.DataSourceDefinition)

InitConnection ... inits connection

func (*Connector) ListCollections

func (c *Connector) ListCollections(parentCtx context.Context) (collections []*pb.CollectionDescription, err error)

func (*Connector) SimilarToThis

func (c *Connector) SimilarToThis(parentCtx context.Context, point []float32, k uint64, filter *pb.Filter) ([]*pb.ScoredPoint, error)

func (*Connector) UpsertPoints

func (c *Connector) UpsertPoints(parentCtx context.Context, waitUpsert bool, points []*pb.PointStruct) (err error)

Jump to

Keyboard shortcuts

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