AI-powered document analysis chatbot with source citations. Upload any PDF and ask natural questions with grounded answers.
- Upload any PDF document
- Ask questions about content
- Get precise answers + source quotes
- Works on research papers, manuals, reports
| Feature | ✅ Live |
|---|---|
| Universal PDF Support | Any document format |
| Semantic Search | Understands document context |
| Source Citations | Exact quotes from your PDF |
| Live Chat Interface | ChatGPT-style conversation |
| Mobile Responsive | Phone + desktop optimized |
| Global Deployment | Streamlit Cloud (worldwide) |
Frontend: Streamlit (production UI)
RAG Pipeline: LangChain v1.2.12
Vector Search: FAISS (semantic indexing)
Embeddings: all-MiniLM-L6-v2 (HuggingFace)
LLM: GPT-4o-mini (production-grade)
PDF Parsing: PyPDFLoader
Deployment: Streamlit Community Cloud
Live worldwide: https://rag-pdfchatbot-prathamdmehta.streamlit.app
✅ Auto-scaling (1000s concurrent users)
✅ 99.9% uptime guarantee
✅ Instant Git deploys
✅ Mobile-first responsive design
✅ Free forever hosting
- PDF → Intelligent text chunking (500 chars)
- Chunks → Semantic embeddings (384-dim vectors)
- Query → FAISS similarity search (top-5 matches)
- Context + Question → GPT-4o-mini generation
- Answer + verifiable source citations
git clone https://github.com/prathamdmehta/RAG-PDFChatbot.git
cd RAG-PDFChatbot
pip install -r requirements.txt
# Add OpenAI key
echo "OPENAI_API_KEY=sk-your-key" > .env
# Launch web app
streamlit run streamlit_app.py📁 RAG-PDFChatbot/
├── streamlit_app.py # 🌐 Production web UI
├── chatbot_core.py # 🧠 RAG pipeline logic
├── chatbot_cli.py # ⌨️ Terminal interface
├── requirements.txt # Dependencies
├── .gitignore # Secrets management
└── README.md # This file
$5 credit = 16K+ questions (~6 months)
1 session (5 questions) = $0.01
Monthly heavy use = $0.50
🔬 Research → "Main conclusion?"
📚 Technical → "Troubleshoot X?"
📈 Reports → "Q1 revenue trends?"
📋 Legal → "Key clauses?"
📖 Textbooks → "Explain chapter 3"
Built with 2026 production AI stack. Live Demo: https://rag-pdfchatbot.streamlit.app
⭐ Star this repo!
📢 Deploy your own: Fork → Deploy → Share!
git add README.md
git commit -m "Add production README"
git push