You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I attempt to enforce a limit to vector search, it doesn't work and returns the full-length result.
Expected Behavior
When I enforce a limit explicitly, it should return the exact number of results, not more.
Steps To Reproduce
I used IVF_PQ INDEX_TYPE with the following configuration.
// Constants
const (
N_PROBE = 128
N_LIST = 4096
N_BITS = 8
M = 16
VECTOR_DIM = 384
)
const (
L2 MetricType = "L2"
IP MetricType = "IP"
Cosine MetricType = "COSINE"
)
var ConsistencyLevel = entity.ClEventually
Here is the schema
```govarCOLLECTION_SCHEMA = entity.NewSchema().WithName(COLLECTION_NAME).WithDescription("this is the example collection for insert and search").
WithField(entity.NewField().WithName("id").WithDataType(entity.FieldTypeVarChar).WithIsPrimaryKey(true).WithIsAutoID(false).WithMaxLength(128)).
WithField(entity.NewField().WithName("vector").WithDataType(entity.FieldTypeFloatVector).WithDim(VECTOR_DIM)).
WithField(entity.NewField().WithName("tag").WithDataType(entity.FieldTypeVarChar).WithMaxLength(128))
@congqixia Please help take a look. @mdmmn378
It is recommended to use topk as the approximate number of vectors expected to be returned by the search.
Is there an existing issue for this?
Current Behavior
When I attempt to enforce a limit to vector search, it doesn't work and returns the full-length result.
Expected Behavior
When I enforce a limit explicitly, it should return the exact number of results, not more.
Steps To Reproduce
The text was updated successfully, but these errors were encountered: