A modern, AI-powered chat assistant built with FastAPI and Groqβs LLM models. Features a sleek Batman-themed UI, real-time chat functionality, and intelligent conversation management.
code
, and headingsTry AskMeBot now: https://nvdpsingh.github.io/AskMeBot/
git clone https://github.com/nvdpsingh/AskMeBot.git
cd AskMeBot
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Create a .env
file in the root directory:
GROQ_API_KEY=your_groq_api_key_here
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
Visit http://localhost:8000
to access the application.
AskMeBot/
βββ app/ # Backend application
β βββ main.py # FastAPI application and endpoints
β βββ groq_router.py # LLM integration and routing
β βββ chat_parser.py # Markdown parsing and response formatting
β βββ context_manager.py # Context management utilities
β βββ doc_parser.py # Document parsing utilities
β βββ memory_builder.py # Memory and context building
β βββ utils.py # General utilities
βββ static/ # Frontend assets
β βββ index.html # Main HTML file with embedded CSS/JS
βββ .github/ # GitHub Actions workflows
β βββ workflows/
β βββ deploy.yml # CI/CD pipeline for GitHub Pages
βββ requirements.txt # Python dependencies
βββ pyproject.toml # Project configuration
βββ README.md # This file
βββ .env.example # Environment variables template
GET /
- Serve the main applicationGET /health
- Health check endpointPOST /chat
- Send chat messages and receive AI responsesPOST /generate-title
- Generate smart chat titlesPOST /change-title
- Update chat titles{
"prompt": "Hello, how are you?",
"model": "openai/gpt-oss-20b"
}
{
"model": "openai/gpt-oss-20b",
"response": "Hello! I'm doing well, thank you for asking. How can I assist you today?",
"error": false
}
Ctrl+Delete
for the current chatEnter
- Send messageShift+Enter
- New line in messageCtrl+Delete
- Delete current chatVariable | Description | Required |
---|---|---|
GROQ_API_KEY |
Your Groq API key for LLM access | Yes |
The application is automatically deployed to GitHub Pages using GitHub Actions:
https://nvdpsingh.github.io/FastAPITut/
For other platforms:
# Build the application
pip install -r requirements.txt
# Run with production settings
uvicorn app.main:app --host 0.0.0.0 --port 8000
curl http://localhost:8000/health
curl -X POST "http://localhost:8000/chat" \
-H "Content-Type: application/json" \
-d '{"prompt": "Hello, world!", "model": "openai/gpt-oss-20b"}'
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)app/
directorystatic/index.html
uvicorn app.main:app --reload
.env
file exists with GROQ_API_KEY
This project is licensed under the MIT License - see the LICENSE file for details.
Made with β€οΈ and β by Navdeep Singh