Closed liangbug closed 3 months ago
@liangbug could you please paste the detailed milvus log here? Thanks.
And here what you mean is the distance of top1 result is different when you search twice using the same vector?
The below figures are made by zilliztech/attu
The pymilvus also make the same results.
don't quite understand what you are saying, there is no guarantee that same search can return same result, especially under your case you are using IVFPQ and the recall is very low.
We can not guarantee same result to be returned becasue:
I suggest you use better search parameters
/assign @liangbug /unassign
@binbinlv
@liangbug could you please paste the detailed milvus log here? Thanks.
And here what you mean is the distance of top1 result is different when you search twice using the same vector?
I don't see anything unusual in the milvus standalone info log.
What kind of log do you need? Can you describe in detail?
The search twice or more returns always return the same result.
The id 450885682672689422 vector and id 450885682672689423 vector are length 1. I searched using 450885682672689423 vector and got result 450885682672689423 vector with distance (score) of 0.99. But I searched using 450885682672689422 vector and got result 450885682672689422 vector with distance (score) of 0.8. Why are they different ?
@cqy123456
- Is the input data normalized? If not, IP<x, x> = x^2, there is a high probability that it is not 1;
- you use M = 8 with dim = 384, it means the distance of Metric<x, y> is the sum of 8 code distances. and it is an erroneous way to calculate distance.
Is it sensible that returning PQ metric not original metric ? Does any other algorithm return non original metric?
cpu index: IVF_FLAT, HNSW, and SCANN; gpu index: GPU_CAGRA, GPU_IVF_FLAT, and GPU_BRUTE_FORCE.
Is there an existing issue for this?
Environment
Current Behavior
I inserted 90k unit vectors with 384 dim, length 1 and created IVF_PQ, GPU_IVF_PQ GPU index with metric: IP, "m": 8, "nlist": 1024. Then I found that I search exactly the same vectors from db and the distance of top 1 results (the exact vector), some are less than 1, some equal 1 .
Expected Behavior
No response
Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response