Find answers from the community

Updated 21 hours ago

Azure OpenAI embedding not working for me

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