-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TAG negation pre-filtering in Redis vector search seems not to work correctly #4256
Comments
Thanks for reaching out! |
Hey :) I tried to debug the problem on my side and something weird seems to happen:
I think this is might be related to the HNSW algorithm. I'll try to reproduce the problem and send a code snippet for you to debug. |
Can you please share on what OS you’re running the server? |
macOS |
This issue is stale because it has been open for 60 days with no activity. |
Hey ,
encountering the following problem
We are defining the following hset key:
hset(key,mapping={"embedding": emb, "item_id": str(id), "partition":partition})
Then defining the index schema like this:
Then I am trying to perform KNN vector search with the negation on the partition tag. E.g pre-filtering the results to be the most similar to the query out of the items that do not have the provided partition:
My search functions is:
An example query string is:
(-@Partition:{shoes})=>[KNN 10 @Embedding $vec_param AS vector_score]
The above query compiles but many of the returned items share the same partition tag.
My questions are:
Thanks
The text was updated successfully, but these errors were encountered: