An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Hello @Gagan Sharma ,
As discussed, please find below the summary of the issue and the fix.
The chatbot was not functioning correctly due to missing environment variables leading to issues with deployment process.
In order to resolve this blocker, upon troubleshooting it was identified that the AZURE_OPENAI_EMB_DEPLOYMENT environment variable was not set correctly, which was causing the issue.
To fix this, first authenticate using azd auth login command and create a new environment using the azd env new .
Finally, execute azd up command to deploy the resources and create the necessary environment variables.
Ensure that you delete old resource groups and creating new ones to avoid any conflicts.
As you can see in the below screenshot the embeddings were created correctly and the chatbot was able to respond as expected both on local and on the container app.
Output:
Local -

Containerized environment (container apps)

Hope this was helpful, it would be great if you accept the answer for betterment of community.
Thank you