This code generates a visual or table based on the user input The backend database is Microsoft Fabric SQL warehouse SQL Agent connects to Fabric based on the following contents from .env file
docker build -t genaiapp .
docker run -d -p 8501:8501 -e SQL_SERVER_NAME=${sqlservername} \
-e SQL_SERVER_DATABASE=${sqlserverdatabase} \
-e GPT4_DEPLOYMENT_NAME=${gpt4deploymentname} \
-e AZURE_OPENAI_API_VERSION=${azureopenaiapiversion} \
-e AZURE_OPENAI_ENDPOINT=${azureopenaiendpoint} \
-e AZURE_OPENAI_API_KEY=${azureopenaiapikey} \
-e ARM_SUBSCRIPTION_ID=${armsubscriptionid} \
-e AZURE_TENANT_ID=${azuretenantid} \
-e AZURE_CLIENT_ID=${azureclientid} \
-e AZURE_CLIENT_SECRET=${azureclientsecret} \
-t genaiapp:latest
sqlservername={Microst Fabric Warehouse GUID}.datawarehouse.fabric.microsoft.com
sqlserverdatabase={Name of the Microsoft Fabric Warehouse}
gpt4deploymentname={LLM Deployment name}
azureopenaiapiversion={Deployment Version}
azureopenaiendpoint={Azure Open AI EndPoint}
azureopenaiapikey={Azure Open AI Key}
armsubscriptionid={Your Subscription ID}
azuretenantid={Your Azure Tenant ID}
azureclientid={Your SP Client ID}
azureclientsecret={Your SP Secret}
streamlit run app.py