A PDF chatbot built with Retrieval-Augmented Generation (RAG). Upload a PDF, ask questions, and get answers grounded in the document's content.
Live app: https://ragdocuai.streamlit.app/
PDF
|
v
Text extraction (pypdf)
|
v
Chunking (LangChain text splitter)
|
v
Embeddings (sentence-transformers)
|
v
Pinecone (vector search)
|
v
Groq LLM (answer generation)
- Streamlit – UI
- pypdf – PDF text extraction
- langchain-text-splitters – chunking
- sentence-transformers (
all-MiniLM-L6-v2) – embeddings - Pinecone – vector database
- Groq (
llama-3.1-8b-instant) – LLM inference
-
Clone the repo and create a virtual environment:
git clone https://github.com/Raiqueeee/DocuMind-AI.git cd DocuMind-AI python -m venv venv venv\Scripts\activate # Windows source venv/bin/activate # macOS/Linux
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile in the project root:PINECONE_API_KEY=your_pinecone_key GROQ_API_KEY=your_groq_key
-
Run the app:
streamlit run app.py
.env is not deployed (it's gitignored). Instead, add your keys under
Manage app → Settings → Secrets:
PINECONE_API_KEY = "your_pinecone_key"
GROQ_API_KEY = "your_groq_key"DocuMind AI
├── app.py # Streamlit app
├── requirements.txt
├── data/ # (empty, for local test PDFs)
└── src/
├── pdf_loader.py # PDF text extraction
├── splitter.py # Text chunking
├── embeddings.py # Embedding model
├── vectorstore.py # Pinecone index + upload
└── llm.py # Groq LLM answer generation