File size: 3,691 Bytes
6108e8a
45b90f8
6108e8a
 
 
 
 
 
45b90f8
6108e8a
 
45b90f8
6108e8a
 
752cf17
6108e8a
752cf17
6108e8a
752cf17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
---
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](https://github.com/yourusername/insight-engine.git)
cd insight-engine


2. Create a virtual environment

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


3. Install dependencies

pip install -r requirements.txt


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

GROQ_API_KEY=your_groq_api_key_here


5. Run the application

streamlit run app.py


๐Ÿค Connect

Parardha - AI Researcher & Full Stack Developer

<div align="center">
<small>Built with โค๏ธ using Python</small>
</div>