Using NLSQLTableQueryEngine with AzureOpenAI #10012
Replies: 1 comment
-
🤖 Hi @LennartHil! 👋 I'm Dosu, a friendly bot here to lend a virtual hand with bugs, questions, and anything else you might need while we wait for a human maintainer. Glad to make your acquaintance! Based on the error message you're receiving, it seems like the Azure OpenAI endpoint or the model deployment you're trying to access does not exist or is not correctly configured. This could be due to several reasons:
Please ensure that these parameters and environment variables are correctly set. If the error persists, it might be due to an issue with your Azure OpenAI deployment itself, and you might need to check its configuration on the Azure portal. You can refer to the AzureOpenAIMultiModal class for more details. Also, there was a similar issue reported in the LlamaIndex repository: [Bug]: Error using Azure opeani. The suggested solution was to ensure you are using the correct model for embeddings as per the Azure documentation and to refer to the guide provided for customization with Azure OpenAI. If you continue to face issues, please provide more details about your Azure OpenAI deployment and the exact steps you're following from the Text-to-SQL Guide. This will help in identifying the root cause of the issue. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
``Hi,
I want to reproduce the Text-to-SQL Guide.
I copied the exact code with the difference that I have only access to a AzureOpenAI deployment.
This is currently not working for me.
Edit:
If I use the llm directly it is working fine.
Example:
python llm.complete("The sky is a beautiful blue and")
Code:
Error Message:
NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
Beta Was this translation helpful? Give feedback.
All reactions