go-client
go-client copied to clipboard
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
or
filter := map[string]interface{}{
"filter": map[string]interface{}{
"must": []map[string]interface{}{
{
"key": "source",
},
{
"match": map[string]string{
"value": "example.pdf",
},
},
},
},
}
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...
Hey. We released a revamp of the SDK that improves this. Please refer to https://qdrant.tech/documentation/concepts/filtering/#filtering-clauses