Documentation
¶
Index ¶
- Constants
- type QdrantClient
- func (qc *QdrantClient) Close()
- func (qc *QdrantClient) Collection() pb.CollectionsClient
- func (qc *QdrantClient) CreateCollection(name string, size uint64) error
- func (qc *QdrantClient) CreatePoint(uuid string, collection string, vector []float32, payload map[string]string) error
- func (qc *QdrantClient) CreatePoints(points []*pb.PointStruct) error
- func (qc *QdrantClient) DeleteCollection(name string) error
- func (qc *QdrantClient) Search(vector []float32) ([]*pb.ScoredPoint, error)
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 (*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)
Click to show internal directories.
Click to hide internal directories.