Closed binbinlv closed 2 years ago
Discussed with @yhmo : for superstructure and substructure metrics, it has the following characteristics: (1) The returned limit(topK) are impacted by dimension (dim) of data. (2) Searched topK is smaller than set limit when dim is large (3) it does not support "BIN_IVF_FLAT" index
And when set dim=8, it is OK.
@yhmo And I want to confirm another thing, from the following, the distances of all the returned vectors are 0, it is expected for this metrics? Thanks.
[2022-07-15 10:31:23,148 - DEBUG - ci_test]: (api_request) : [Collection.search] args: [[b'\x1e'], 'binary_vector', {'metric_type': 'SUPERSTRUCTURE', 'params': {'nprobe': 10}}, 10, 'int64 >= 0', None, None, 20, -1], kwargs: {'_async': False} (api_request.py:56)
[2022-07-15 10:31:23,268 - DEBUG - ci_test]: (api_response) : ["['(distance: 0.0, id: 434597479163442700)', '(distance: 0.0, id: 434597479163442745)', '(distance: 0.0, id: 434597479163442795)', '(distance: 0.0, id: 434597479163442859)', '(distance: 0.0, id: 434597479163442861)', '(distance: 0.0, id: 434597479163442971)', '(distance: 0.0, id: 434597479163442992...... (api_request.py:31)
/unassign /assign @yhmo
query_raw_vector
I think this behavior is expected. superstruct/substruct metric only has two state: true or false, true is matched, false is unmatched. That means the result distance only has two kinds value, 0 or 1, we use 0 to represent matched, 1 represent unmatched.
OK,work as design, close.
Is there an existing issue for this?
Environment
Current Behavior
Search returns empty for superstructure and substructure metrics:
Expected Behavior
Returns topK successfully
Steps To Reproduce
Milvus Log
No response
Anything else?
No response