How to $vectorSearch with multiple index
Here is the Basic example
pipeline = [
{
“$vectorSearch”: {
“index”: “vector_index”, #Can I put multiple index here and merge the search result?
“queryVector”: query_embedding,
“path”: “embedding”,
“exact”: True,
“limit”: 5
}
}, {
“$project”: {
“_id”: 0,
“text”: 1
}
}
]