parardhadhar's picture
Update README.md
752cf17 verified
|
Raw History Blame Contribute Delete
3.69 kB
metadata
title: Parardha Insight Engine
emoji: 🚀
colorFrom: red
colorTo: red
sdk: docker
app_port: 8501
tags:
  - streamlit
pinned: false
short_description: Streamlit template space
license: mit

title: Parardha Insight Engine emoji: 🧠 colorFrom: blue colorTo: indigo sdk: streamlit sdk_version: 1.41.1 app_file: app.py pinned: false license: mit

🧠 Parardha's Insight Engine

Experience the future of document interaction. > Insight Engine is a production-grade Retrieval-Augmented Generation (RAG) application that turns static PDFs into interactive, conversational knowledge bases.

🏗️ Architecture: How It Works

Insight Engine doesn't just "guess" answers. It uses a sophisticated RAG Pipeline to ground every response in your actual data.

graph TD subgraph Ingestion["1. Data Ingestion"] A[User Uploads PDF] -->|PyMuPDF| B(Text Extraction) B -->|Chunking| C(Text Chunks) end

subgraph Embedding["2. Vector Embedding"]
C -->|HuggingFace Model| D[Vector Embeddings]
D -->|Store| E[(In-Memory Vector Index)]
end

subgraph Retrieval["3. Retrieval & Generation"]
F[User Query] -->|Embed Query| G[Query Vector]
G -->|Similarity Search| E
E -->|Retrieve Top-k Context| H[Relevant Context]
H -->|Context + Query| I[Llama 3.3 LLM (Groq)]
I -->|Generates Answer| J[Final Response]
end

🚀 Key Features

⚡ Blazing Fast Inference: Powered by Groq's LPU (Language Processing Unit) running Llama 3.3-70b, delivering near-instant responses.

🔒 Private & Secure: Your documents are processed in-memory and never stored permanently on external servers.

🧠 Deep Understanding: Uses sentence-transformers/all-MiniLM-L6-v2 for high-fidelity semantic search, understanding the meaning behind your questions, not just keywords.

🎨 Glassmorphism UI: A custom-designed, aesthetic interface built on Streamlit that feels like a modern SaaS product.

🛠️ Tech Stack

This project leverages the bleeding edge of the AI stack:

Component

Technology

Why I Chose It

LLM Inference

Groq API

The world's fastest inference engine for open-source models.

Orchestration

LlamaIndex

The industry standard for connecting custom data to LLMs.

Embeddings

Hugging Face

Local, high-performance vectorization (all-MiniLM-L6-v2).

Frontend

Streamlit

Rapid deployment of data-centric web applications.

Vector Store

In-Memory

Efficient, ephemeral storage for session-based interactions.

🔮 Future Roadmap

I am actively working on the next version of Insight Engine. Here is what's coming:

$ Multi-Format Support: Support for .docx, .txt, and .csv files. $$

Citation Engine: The bot will highlight exactly where in the PDF it found the answer (e.g., "Found on Page 3").

$ Persistent Memory: Users will be able to save their chat history and resume sessions later using a vector database like Pinecone or Weaviate. $$

Voice Mode: Speak to your documents instead of typing.

💻 Getting Started (Local Development)

Want to run this on your own machine? Follow these steps:

  1. Clone the repository

git clone https://github.com/yourusername/insight-engine.git cd insight-engine

  1. Create a virtual environment

python -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate

  1. Install dependencies

pip install -r requirements.txt

  1. Set up your API Key Create a .env file in the root directory:

GROQ_API_KEY=your_groq_api_key_here

  1. Run the application

streamlit run app.py

🤝 Connect

Parardha - AI Researcher & Full Stack Developer

Built with ❤️ using Python