Find answers from the community

Updated 2 months ago

Workflows for advanced text-to-sql

At a glance

The community member is trying to use Azure AI with OpenAI, but is having trouble as the code is still trying to connect to the OpenAI service instead of the Azure service. They have set llm=AzureOpenAI(...) but it is still not working. The comments suggest that the community member may need to configure an embedding model in addition to the language model. However, there is no explicitly marked answer in the comments.

Hello. I am trying to develop on Azure AI with OpenAI. I have the endpoints and generic setup working. When I try to use AzureAI with llama_index.core it still tries to do directly to an OpenAI service, not the service we have in Azure. I am following along with "Workflows for Advanced Text-2-SQL" and have changed this to llm=AzureOpenAI(...) yet it still wants to go to OpenAI. What am I missing?
L
w
3 comments
You likely also need to configure an embedding model? Theres two models, the LLM and the embedding model
Ahhh, okay. Digging into that now.
It would be nice if the documentation/example pages listed that so you could change the models used.
Add a reply
Sign up and join the conversation on Discord