You should add an additional index type within the vector search index JSON config.
This is my Vector Search Index that solve the issue for your reference :
{
"fields": [
{
"numDimensions": 1536,
"path": "<<path_embedding>",
"similarity": "cosine",
"type": "vector"
},
{
"path": "question_id", // The collection field to be used within the filter
"type": "filter"
}
]
}
After made change and let the index rebuilt, there issue should be gone, hope this works for you, too.
Reference : https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-type/[Reference here ](https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-type/)
Happy coding :)