Hi , using llamaindex i am trying to read an pdf and after chunking and embedding trying to lead the document into azurecosmos db , But i am getting following error --pymongo.errors.OperationFailure: cosmosSearchOptions, full error: {'ok': 0.0, 'errmsg': 'cosmosSearchOptions', 'code': 197, 'codeName': 'InvalidIndexSpecificationOption'} my code is as below import openai from llama_index.llms.openai import OpenAI from llama_index.core import Settings from llama_index.core import VectorStoreIndex, SimpleDirectoryReader, get_response_synthesizer from llama_index.core import StorageContext, ServiceContext, load_index_from_storage from llama_index.embeddings.openai import OpenAIEmbedding import pymongo from llama_index.vector_stores.azurecosmosmongo import ( AzureCosmosDBMongoDBVectorSearch, ) import json import certifi mounted_fldr = "Users/vivek/Documents/pycharmprojects/docs_process_llamaindex" config_file = f"/{mounted_fldr}/config/config1.json" src_data = f"/{mounted_fldr}/src_data"
index_dir = f"/{mounted_fldr}/index_data"
Set up your OpenAI API key
with open(config_file) as f: config = json.load(f)