qdrant / go-client

Go client for Qdrant vector search engine
Apache License 2.0
146 stars 14 forks source link

The query conditions are too complex #43

Open shzy2012 opened 5 months ago

shzy2012 commented 5 months ago

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
shzy2012 commented 5 months ago

or

    filter := map[string]interface{}{
        "filter": map[string]interface{}{
            "must": []map[string]interface{}{
                {
                    "key": "source",
                },
                {
                    "match": map[string]string{
                        "value": "example.pdf",
                    },
                },
            },
        },
    }
Matthieu-Coddity commented 2 months ago

Agreed. I had to recode a Qdrant http client in go, because the GRPC is over complicated, especially on filters management. Qdrant is very great, and for those who dont want to use Langchain go...