Even I faced the issue. The problem is in creating the correct type of index. We have to create the cosmoSearch index, then only the index drop-down will be enabled. Try out the below code. This can be executed before or after loading the data into the collection. The field contentVector should be created in each documents.
db.runCommand({
createIndexes: "your_collection_name",
indexes: [
{
name: "vectorSearchIndex",
key: {
contentVector: "cosmosSearch"
},
cosmosSearchOptions: {
kind: "vector-ivf",
numLists: 1,
similarity: "COS",
dimensions: 239
}
}
]
});