A simple Streamlit-based chatbot that connects to Azure OpenAI and Azure AI Search, allowing you to ask questions about your own data indexed in Azure AI Search.
- Chat interface with real-time streaming responses
- Connects to your Azure OpenAI deployment and Azure AI Search index
- Displays current environment configuration
- Supports keyboard shortcuts (CTRL+Enter to send)
-
Clone this repository
-
Install requirements:
pip install -r requirements.txt
-
Set the following environment variables:
AZURE_OPENAI_ENDPOINTthe OpenAI Endpoint URL.AZURE_OPENAI_CHAT_DEPLOYMENTthe deployment name you chose when deploying your model.AZURE_OPENAI_SEARCH_ENDPOINTthe endpoint to your Azure Search resource.AZURE_OPENAI_SEARCH_INDEXthe index name you chose when creating your Azure Search index.AZ_OPENAI_ENDPOINT(if needed for compatibility)
-
Run the app:
streamlit run index.py
-
Enter your question in the chat box and press Ask or CTRL+Enter.
-
The chatbot will respond using data from your Azure AI Search index.
MIT
