Find answers from the community

Updated 4 months ago

Azure OpenAI embedding not working for me

At a glance

The community members are facing an issue with the Azure OpenAI Embedding not working for them. They are encountering a NotFoundError and the query engine is not working due to this error. The community members have tried using the client directly, which works, and have also shared the full error message. The solution provided is to use model instead of engine and to pass the deployment name when creating the AzureOpenAIEmbedding object. However, it was later mentioned that the deployment name is not required.

Azure OpenAI Embedding not working for me
W
A
14 comments
What error are you facing?
Using the clientr Directly works
Due to the error query engine is not working
Could you share the full error here
Using it as
Plain Text
embed_model = AzureOpenAIEmbedding(
    engine="text-embedding-3-large",
    api_key=AZURE_OPENAI_API_KEY,
    azure_endpoint=AZURE_OPENAI_ENDPOINT,
    api_version=OPENAI_API_VERSION
)
You are not passing the deployment name
Works now, used model instead of engine
Plain Text
embed_model = AzureOpenAIEmbedding(
    engine="text-embedding-3-large",
    api_key=AZURE_OPENAI_API_KEY,
    azure_endpoint=AZURE_OPENAI_ENDPOINT,
    api_version=OPENAI_API_VERSION,
azure_deployment="Deployment Name of your model"    # Pass it like this
)
No need for deployment_name btw
Add a reply
Sign up and join the conversation on Discord