Hi @Amitoj_Singh1 - welcome to the community forums!

In MongoDB, a vector index is a type of search index. They’re created with collection.create_search_index() in PyMongo. Where did you find documentation saying that they’re created with create_index?

You’re right that create_index with the same arguments as an existing index will silently do nothing, but that’s not the case with create_search_index, unfortunately, where you’ll have to call collection.list_search_indexes() with the name of your index to check whether it already exists.

Hope this helps!

Mark

1 Like