-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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]: Filtering results do not match expectations when using the radius param. #30327
Comments
/assign |
If it's convenient, could you provide more detailed logs for further investigation? |
There are no server logs. Only parameters used by the visual client are available through the Attu. |
I can confirm i have a similar behaviour with “Hamming” metric |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I seem to have a problem related to this.
index_params = { Current Behavior
Expected BehaviorIn the first search result, the first record we get back has a distance of 0.80049676. Increasing the radius from 0.1 to 0.7 should still return the first record. Steps To ReproduceNo response Milvus LogNo response Anything else?No response |
Is there a resolution for this? Facing exact same issue when using radius with IP. |
could you please file a new issue and offer the milvus logs for investigation? |
@smellthemoon @cydrain |
I don't think nprobe will work on this case |
Hi @cydrain , I tried setting max_empty_result_buckets to low value (10) and to max value (65535) but still got empty results. Here are the params. If I remove range_filter and radius, it returns 5 documents from db. If I pass those, I get empty. While metric has value of ~ .7 - .8. I tried varying radius between -1 to 1 but no help.
|
@maggonravi could you please file a new issue and offer the milvus logs? if possible sharing some data sample with us to reproduce the issue would be great helpful. |
what metrics you are using? |
As per the official docs, the above filter seems correct to me.
So |
/assign |
Is there an existing issue for this?
Environment
Current Behavior
I can get the second record whose id equal "71a5b70e-bcc1-11ee-ae22-708bcdba5a7a" when I set nothing to radius param.
![1](https://private-user-images.githubusercontent.com/21698608/300169038-04a21e78-2538-47fe-bc0f-62c681c132d0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM0NTQ0NTksIm5iZiI6MTcyMzQ1NDE1OSwicGF0aCI6Ii8yMTY5ODYwOC8zMDAxNjkwMzgtMDRhMjFlNzgtMjUzOC00N2ZlLWJjMGYtNjJjNjgxYzEzMmQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEyVDA5MTU1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE2M2Q1NWY1OWQ5NzFjOWNkYzI1MTY1MTBjMWU2MDM5ZmVhMzE2MWE5YzUzNDY2ZTkyZDcyNDIxMWQ3NTQ3ZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.f9b9jzEgpurw4viLDr170g4w42iJg_Gi6CgRKCuegq4)
But I can't see it anymore when i set 0.7 to radius. Although I have no delete the that record.
My index is IP. Maybe I'm wrong about the radius parameter? If my understanding is wrong, can you tell me how to filter the result with score greater than 0.7?
![3](https://private-user-images.githubusercontent.com/21698608/300169242-346d952d-a4cf-4297-86ab-d1a2a87067d2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM0NTQ0NTksIm5iZiI6MTcyMzQ1NDE1OSwicGF0aCI6Ii8yMTY5ODYwOC8zMDAxNjkyNDItMzQ2ZDk1MmQtYTRjZi00Mjk3LTg2YWItZDFhMmE4NzA2N2QyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEyVDA5MTU1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNhNDQ2ZmYwNWI2MWE1OGYyMmRkNGE4ZjAyZmY1YWZlYTRlNjliNjZhYmVkMTUwYTcyMzk4MjIwMmYyYjNkMTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.E0UJB9z76OCcSmmbpb5t-b4MpcDCMyTnGEPq1Ipo99Y)
Expected Behavior
Input some param to filter the result with score greater than 0.7.
Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: