Create_vector_search pymongo latest version returns command not found

Hey @Matthieu_Mazzolini , apologies for the delay here.
To execute the command via pymongo and have an type: vectorSearch index. For now, you will need to use the Database.command method and createSearchIndexes. Link to docs.

Here’s an example using your current configuration:

vs_index = {
    "definition": {
    	"fields": [
            {
                "numDimensions": SCENARIOS_VECTOR_LENGTH,
                "path": "embeddings.scenarios",
                "similarity": "cosine",
                "type": "vector"
            }
        ],
    },
    "name": "scenario_vector_index",
    "type": "vectorSearch",
}

c.index_db.command(
	{
		"createSearchIndexes": "test_vs_index", 
		"indexes": [vs_index]
	}
)