-
Notifications
You must be signed in to change notification settings - Fork 43
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
Please support search for multiple vectors #260
Comments
I think you can search with mulitple vectors. client.search({
collection_name: 'my_collection',
data: [vector1, vector2],
limit: 5
}) ; |
Well, the current Node SDK allows you to search multiple vectors across an entire collection. However, the feature you're referring to, where a single collection can have two or more vector fields, is not yet available. Please stay tuned for the upcoming release of Milvus. : ) |
2.4 version has been released. import { RRFRanker, WeightedRanker } from '@zilliz/milvus2-sdk-node';
// single-vector search on a collection with multiple vector fields
const search = await milvusClient.search({
collection_name: collection_name,
data: [1, 2, 3, 4, 5, 6, 7, 8],
anns_field: 'vector', // required if you have multiple vector fields in the collection
params: { nprobe: 2 },
filter: 'id > 100',
limit: 5,
});
// multi-vector search on a collection with multiple vector fields
const search = await milvusClient.search({
collection_name: collection_name,
data: [
{
data: [1, 2, 3, 4, 5, 6, 7, 8],
anns_field: 'vector',
params: { nprobe: 2 },
},
{
data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
anns_field: 'vector1',
},
],
limit: 5,
rerank: RRFRanker(),
filter: 'id > 100',
}); You can check the test case: |
Describe the feature:
the client should support search for multiple vectors
See milvus-io/milvus#25639
Describe a specific use case for the feature:
Some collection need multiple vectors to represent them. The should be indexable and searchable.
The text was updated successfully, but these errors were encountered: