DocMind AI is a PDF Question Answering system built using Generative AI (RAG - Retrieval Augmented Generation).
It allows users to upload a document and ask questions, and the system answers based on the document content.
- 📄 Upload any PDF document
- 💬 Ask questions in natural language
- 🧠 Context-based answers using AI
- ⚡ Fast retrieval using vector database
- 🎯 More accurate than normal chatbots
- Extract text from PDF
- Split text into chunks
- Convert chunks into embeddings
- Store embeddings in FAISS vector database
- Retrieve relevant chunks using similarity search
- Send context + query to LLM (LLaMA via Ollama)
- Generate final answer
- Frontend: Streamlit
- PDF Processing: pdfplumber
- Embeddings: HuggingFace (MiniLM)
- Vector Database: FAISS
- LLM: Ollama (LLaMA 3)
ollama serve
### 2. Pull the model
```bash
ollama pull llama3
Install dependencies
pip install -r requirements.txt
Run the application
streamlit run app.py