An advanced AI-powered document chatbot using Retrieval Augmented Generation (RAG) to answer questions from any PDF with high accuracy.
- PDF is split into semantic chunks
- Each chunk is converted to vector embeddings using Sentence Transformers
- Embeddings stored in a FAISS vector database
- User question is embedded and matched via similarity search
- Most relevant chunks retrieved and sent to Groq LLM (LLaMA 3.3) for answer generation
| Tool | Purpose |
|---|---|
| Python | Core language |
| Streamlit | Frontend UI |
| Groq API (LLaMA 3.3) | LLM inference |
| FAISS | Vector database |
| Sentence Transformers | Text embeddings |
| PyPDF | PDF parsing |
- True RAG pipeline with semantic search
- FAISS vector similarity search
- Context-aware answers from any PDF
- Fast inference via Groq API
- No API key needed
pip install -r requirements.txt
streamlit run appdoc.py