qdrant / go-client Goto Github PK
View Code? Open in Web Editor NEWGo client for Qdrant vector search engine
License: Apache License 2.0
Go client for Qdrant vector search engine
License: Apache License 2.0
An easy-to-use parallelized initial uploader needed --just like the one in the Python client.
When I try even your example and try to access the payload or vectors of a result, I get an empty map and nil response.
After unfliteredSearshResult
I tried:
for _, result := range unfilteredSearchResult.Result {
log.Print("id ", result.Id)
log.Print("payload ", result.Payload)
log.Print("score ", result.Score)
log.Print("version ", result.Version)
log.Print("vectors ", result.Vectors)
}
I expected to see the payload and vector for each of the search results but instead I got this:
2023/05/23 11:02:03 id num:4
2023/05/23 11:02:03 payload map[]
2023/05/23 11:02:03 score 1.362
2023/05/23 11:02:03 version 2
2023/05/23 11:02:03 vectors <nil>
2023/05/23 11:02:03 id num:1
2023/05/23 11:02:03 payload map[]
2023/05/23 11:02:03 score 1.273
2023/05/23 11:02:03 version 2
2023/05/23 11:02:03 vectors <nil>
2023/05/23 11:02:03 id num:3
2023/05/23 11:02:03 payload map[]
2023/05/23 11:02:03 score 1.208
2023/05/23 11:02:03 version 2
2023/05/23 11:02:03 vectors <nil>
Hello,
I'm trying to run the examples/authentication code. I run it as:
$ go run . -addr xxxxxxx.us-east-1-0.aws.cloud.qdrant.io:6333
2023/06/07 08:39:51 could not get collections: rpc error: code = Unknown desc = unexpected HTTP status code received from server: 464 (); malformed header: missing HTTP content-type
exit status 1
I have manually edited line 35 to contain my API key.
when i used this driver on production
could i need build an connection pool for manage the qdrant client
for different of request and coroutine ?
i meet this err when list collection : connection closed before server preface received , use [email protected] grpc v1.47.0 protobuf v1.28.0
below is the code
addr := "xxxxxx:6334"
conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
log.Fatalf("did not connect: %v", err)
}
fmt.Println("conn:", conn)
fmt.Println("err:", err)
defer conn.Close()
collections_client := pb.NewCollectionsClient(conn)
// Contact the server and print out its response.
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
defer cancel()
r, err := collections_client.List(ctx, &pb.ListCollectionsRequest{})
if err != nil {
log.Fatalf("could not get collections: %v", err)
}
log.Printf("List of collections: %s", r.GetCollections())`
rpc error: code = Unavailable desc = connection closed before server preface received
For example, REST API has a GetPoint
that get only one single point but Go has only compatible API to get multiple points.
Also, the example does not demonstrate everything that can be done with the go client (success and failure case). it will help if this repo can provide better documentation such as GoDoc
or a better ReadMe
. To find out the API available (function signature, params and result type), I have to go through the .proto
files and cross checking the generated .go
files.
I want to get the count of all points . does there hava a off-the-shelf method?
I'm going through the sample code, and noticed that one type is unexported.
The sample code is:
140 Id: &pb.PointId{
141 PointIdOptions: &pb.PointId_Num{Num: 2},
142 },
I understand that I can use either an int or a uuid. I wanted to learn how to use a uuid:
$ go doc github.com/qdrant/go-client/qdrant.PointId
package go_client // import "github.com/qdrant/go-client/qdrant"
type PointId struct {
// Types that are assignable to PointIdOptions:
// *PointId_Num
// *PointId_Uuid
PointIdOptions isPointId_PointIdOptions `protobuf_oneof:"point_id_options"`
// Has unexported fields.
}
func (*PointId) Descriptor() ([]byte, []int)
func (x *PointId) GetNum() uint64
func (m *PointId) GetPointIdOptions() isPointId_PointIdOptions
func (x *PointId) GetUuid() string
func (*PointId) ProtoMessage()
func (x *PointId) ProtoReflect() protoreflect.Message
func (x *PointId) Reset()
func (x *PointId) String() string
But we see that isPointId_PointIdOptions
is unexported
Hi, Im trying to achieve a Go equivalent of the python API recover snapshot command shown here . I dont seem to find any equivalent of it in the snapshots, admin or collections clients, is it not implemented currently or am I missing it? Thanks!
How to create a QdrantClient using local mode (passing a file path instead of a grpc link)? Thanks
This link is invalid:
https://github.com/qdrant/go-client/blob/master/README.md?plain=1#L29
I noticed these are listed as Unimplemented
, so I'm curious if there is a plan for adding them?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.