Skip to content

Devvrat53/AOAI-Chatbot

Repository files navigation

💬 Azure OpenAI Documentation Chatbot

This is a Generative AI-powered chatbot application built with Azure OpenAI, FastAPI, Streamlit, and Azure Cognitive Search. It allows users to ask questions related to Azure OpenAI based on the official Microsoft documentation.

📌 Features

  • ✅ Natural language question answering
  • ✅ Powered by GPT-4o via Azure OpenAI
  • ✅ Uses Azure AI Search to retrieve relevant sections from Azure OpenAI docs
  • ✅ Built-in short-term session history (Streamlit)
  • ✅ Modular backend using FastAPI
  • ✅ Clean and styled UI with Streamlit

🗂️ Project Structure

chatbot/
├── backend/               # FastAPI backend
│   ├── main.py
│   ├── routers/
│   └── services/
├── frontend/              # Streamlit frontend
│   ├── app.py
│   └── components/
├── shared/                # Shared utilities
│   ├── config.py
│   └── utils.py
├── .env                   # Your secrets (excluded from Git)
├── .env.sample            # Sample environment config
├── requirements.txt       # Python dependencies
└── README.md

🚀 Getting Started

1. Clone the repo

git clone https://github.com/your-username/chatbot.git
cd chatbot

2. Create & activate a virtual environment

python -m venv venv
source venv/bin/activate       # macOS/Linux
# OR
venv\Scripts\activate          # Windows

3. Install dependencies

pip install -r requirements.txt

4. Configure environment

Create a .env file using the provided .env.sample:

cp .env.sample .env

Add your Azure OpenAI, Search, and Blob credentials in the .env file.


🧪 Running the Application

Start the backend (FastAPI)

uvicorn backend.main:app --reload --port 8000

Start the frontend (Streamlit)

streamlit run frontend/app.py

🔍 Use Case

This chatbot is designed to:

  • Help users navigate Azure OpenAI documentation
  • Provide instant answers to queries like:
    • “What is the model availability per region”
    • “What is the latest REST API for the Azure OpenAI?”

📦 Technologies Used


📄 License

MIT

About

Virtual Chatbot to answer the Azure Machine Learning Technical Questions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages