-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Bug]: Scalar indexes cannot search out data #34548
Comments
Just now I backed up this vector to another cluster, and the exception can still be reproduced. After deleting the collection from the backup cluster, I backed up and restored it again, and it cannot be reproduced. |
/assign @zhagnlu |
This is not because scalar filtering causes hnsw to be unable to perform layer traversal, because there is another set of data that can also have data with scalars after multiple queries. And no data operation is performed during this period |
This collection configures replicas. Is it caused by index differences between replicas? |
@zhagnlu There is no difference, multiple requests return completely different results |
if not hybrid search, just using query, will multiple requests return completely different results ? |
Vector search and query returns normally |
@zhagnlu Another phenomenon is that some search conditions cannot be returned at all if they have scalar filtering, but vector searches have returns. But this scalar filtering has data. hybrid search returns blank |
@yanliang567 Yes, sometimes the returned results are inconsistent, and sometimes the returned results are incorrect.Appears only on the hnsw index plus scalar filtering |
Regenerated debug log |
@yanliang567 @cydrain @liliu-z Can you help us check together? |
@syang Could you please tell us the filter_rate and index building parameters? |
Most searches are normal, and now the M value is not small |
@alwayslove2013 This collection has less than 20,000 data, but the M value and efConstruction are large enough (I think).I know about the data island problem that scalar filtering and hnsw work together, and I have previously investigated and adjusted the index construction parameters |
Hi @syang1997 , Can you share your script to reproduce this issue ? |
I'm coding a demo to replicate this issue |
Hi @syang1997 , One more question, I see you're using Milvus v2.3.15, have you tried Milvus v2.4.x ? |
This fix will be released with 2.4.7 |
/assign @yanliang567 |
Can it be merged to version 2.3.x? @yanliang567 @liliu-z |
I don't think so, as 2.3.20 could be the last release of 2.3.x |
Okay, we will choose to upgrade to 2.4.x later |
Is there an existing issue for this?
Environment
Current Behavior
Hybrid search cannot find out data, but a separate query can find out data
This scalar query has data
Expected Behavior
No response
Steps To Reproduce
No response
Milvus Log
milvus-log (1).tar.gz
Anything else?
No response
The text was updated successfully, but these errors were encountered: