A community member is unable to create embeddings using the AzureOpenAIEmbeddings class from the LangChain library. They are getting a 404 error, "Resource not found". The community member is using OpenAI version 1.6.1 and LangChain version 0.0.344, as they are using the llama-index library which requires a higher version of OpenAI.
Other community members suggest that the issue may be due to OpenAI updating their library, and that for Azure, the endpoint needs to be specified differently than for OpenAI. They provide a link to the LlamaIndex documentation on how to use AzureOpenAI. One community member also suggests trying the solution in a new environment.
The issue is resolved, as indicated by the final comment "Thanks a lot bro, it's working π".
Hi guys, I'm unable to create embeddings Code:- from langchain.embeddings import AzureopenAIEmbeddins embeddings=AzureOpenAIEmbeddings (deployment="text-embedding-ada-002", model"text-embedding-ada-002", openai api base="<OPENAI_API_BASE>", openai_api_type="azure", openai_api_key="<OPENAI_API_KEY>" openai_api_version="2023-07-01-preview")
While creating embeddings embeddings.embed_query(" this is test query")
I'm getting this error NotFoundError: Error code: 404-{'error':{code':'404', 'message': 'Resource not found"}}
I'm using OpenAi=1.6.1 Langchain=0.0.344, since I'm using llama-index that's why I'm using higher version of OpenAi. For OpenAi version 0.28.5 embeddings is working but for higher it isn't. Pls help