Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocuMind AI

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/

How it works

PDF
 |
 v
Text extraction (pypdf)
 |
 v
Chunking (LangChain text splitter)
 |
 v
Embeddings (sentence-transformers)
 |
 v
Pinecone (vector search)
 |
 v
Groq LLM (answer generation)

Tech stack

  • 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

Setup

  1. 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
  2. Install dependencies:

    pip install -r requirements.txt
  3. Create a .env file in the project root:

    PINECONE_API_KEY=your_pinecone_key
    GROQ_API_KEY=your_groq_key
  4. Run the app:

    streamlit run app.py

Deploying to Streamlit Cloud

.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"

Project structure

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

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages