Telegram AI Bot with RAG

Enterprise document Q&A — upload PDFs, get instant answers

✅ Ready for Deployment

Architecture

┌──────────┐ ┌──────────────┐ ┌───────────┐ │ User │────▶│ Telegram │────▶│ FastAPI │ │ (TG) │ │ Bot API │ │ Server │ └──────────┘ └──────────────┘ └─────┬─────┘ │ ┌───────────────────────────┼───────────┐ │ │ │ ┌───────▼──────┐ ┌─────────▼──────┐ │ │ ChromaDB │ │ Mistral AI │ │ │ (vectors) │◀────────▶│ Embed + Gen │ │ └──────────────┘ └────────────────┘ │ │ │ ┌───────▼──────┐ │ │ PDF Parser │───────────────────────────────┘ │ (PyMuPDF) │ └──────────────┘

Key Features

📄 PDF Upload

Drag-and-drop any PDF. Instantly parsed, chunked, and indexed for semantic search.

🔍 Semantic Search

Mistral Embeddings + ChromaDB — finds the exact context before generating answers. No hallucinations on your docs.

📊 Admin Dashboard

Streamlit-based admin panel with FAQ management, user analytics, and document usage stats.

💰 Zero-Cost AI

Uses Mistral AI free tier (500k req/min). No monthly fees, no API bills.

Tech Stack

Python FastAPI ChromaDB LangChain Mistral AI Telegram Bot API Streamlit Docker

Use Cases