Giter VIP home page Giter VIP logo

go-client's Issues

Search Results Payload and Vectors Empty

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>

The query conditions are too complex

Can it be simplified, such as supporting map?

json format

POST /collections/chatapp/points/delete
{
    "filter": {
        "must": [
            {
                "key": "source",
                "match": {
                    "value": "example.pdf"
                }
            }
        ]
    }
}

to ----->

go code
image

Example doesn't work?

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.

connection pool

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 ?

list collection err

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())`

connection failed

rpc error: code = Unavailable desc = connection closed before server preface received

Go API doesn't match with REST API and better documentation is needed

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.

how to

I want to get the count of all points . does there hava a off-the-shelf method?

User facing type is unexported

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

Missing Snapshot Recovery

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!

Local mode?

How to create a QdrantClient using local mode (passing a file path instead of a grpc link)? Thanks

Collection aliases

I noticed these are listed as Unimplemented, so I'm curious if there is a plan for adding them?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.