Skip to content

Latest commit

Β 

History

History
151 lines (102 loc) Β· 2.46 KB

File metadata and controls

151 lines (102 loc) Β· 2.46 KB

🧠 IntelliDoc AI – Local RAG Document Assistant

IntelliDoc AI is a fully local Retrieval-Augmented Generation (RAG) application that lets you upload PDF documents and ask intelligent questions about them using a locally running LLM.

Built with Streamlit + LangChain + Ollama + ChromaDB, it runs entirely on your machine β€” no external API calls required.


πŸš€ Features

  • πŸ“„ Upload and chat with multiple PDF documents
  • πŸ”Ž Semantic search using vector embeddings
  • πŸ€– Local LLM inference via Ollama
  • 🧠 Retrieval-Augmented Generation (RAG) pipeline
  • πŸ’¬ Clean Streamlit chat interface
  • πŸ’Ύ Persistent vector store (ChromaDB)

πŸ—οΈ Tech Stack

  • Frontend: Streamlit
  • LLM: Ollama (Qwen2.5 / Mistral supported)
  • Embeddings: FastEmbed
  • Vector Database: ChromaDB
  • Framework: LangChain

βš™οΈ Setup Instructions

1️⃣ Clone the Repository

git clone https://github.com/your-username/intellidoc-ai.git
cd intellidoc-ai

2️⃣ Create Virtual Environment

python -m venv venv

Activate:

Mac/Linux

source venv/bin/activate

Windows

venv\Scripts\activate

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Install & Setup Ollama

Download from:

https://ollama.com

Pull a model:

ollama pull qwen2.5

(Optional alternative)

ollama pull mistral

Ensure Ollama is running in the background.


▢️ Run the Application

streamlit run app.py

Open in browser:

http://localhost:8501

πŸ“‚ How It Works

  1. Upload a PDF
  2. Text is split into chunks
  3. Chunks are embedded using FastEmbed
  4. Stored in ChromaDB
  5. User query retrieves relevant chunks
  6. Context + Question β†’ LLM β†’ Final Answer

πŸ“ Project Structure

.
β”œβ”€β”€ app.py
β”œβ”€β”€ rag.py
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ chroma_db/
└── README.md

πŸ” Why Local RAG?

  • No API costs
  • Full data privacy
  • Works offline
  • Fully customizable
  • Ideal for experimentation & research

πŸ“Œ Future Improvements

  • DOCX / TXT support
  • Hybrid retrieval (BM25 + embeddings)
  • Streaming responses
  • Cloud deployment
  • Authentication support

πŸ‘¨β€πŸ’» Author

Ashutosh Zawar
MS Computer Science
AI/ML β€’ Backend β€’ Cloud β€’ RAG Systems


⭐ If you found this useful, consider giving it a star!