Issue with Inconsistent Vector Search Results and Geo-Filtering #5636
diegoanvilla
started this conversation in
General
Replies: 1 comment 2 replies
-
After further testing i found that if I edit the payload of the documents that should appear it then shows as a result in a consisten way, this feels like a bug, or is there something I'm missing? Can it be related to the fact that I indexed the location field? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am experiencing an issue with Qdrant's vector search functionality when using geo-filtering. Specifically, I am encountering inconsistent search results when filtering by geolocation and applying a score threshold.
I have a collection of documents in Qdrant with vector embeddings and geolocation data. When performing a vector search with a geo-radius filter and a score threshold, the results I get are few and have low scores or at least lower than expected.
Because I knew that high score documents were missing I included an additional filter by document ID of a document i knew was within the radius of the coords provided and has a high score, the desired document appeared with a high score (0.999). However, when I remove the ID filter, the search returns less relevant documents and excludes the desired document, which should have a higher score based on the vector similarity and geolocation proximity.
Here are my queries (leaving out the query field with the vector):
With document id:
{ "limit": 3000, "using": "vector_name", "score_threshold": 0.8, "with_payload": true, "filter": { "must": [ { "key": "location", "geo_radius": { "center": { "lon": -xxxxxx, "lat": xxxxx }, "radius": 30000 } }, { "key": "id", "match": { "any": [100291] } } ] } }
Without document id:
{ "limit": 3000, "using": "vector_name", "score_threshold": 0.8, "with_payload": true, "filter": { "must": [ { "key": "location", "geo_radius": { "center": { "lon": -xxxx, "lat": xxxx }, "radius": 30000 } } ] } }
Beta Was this translation helpful? Give feedback.
All reactions