File size: 2,900 Bytes
3a736a7 959c484 3a736a7 959c484 | 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 154 155 156 | ---
title: Enterprise AI Document Intelligence Platform
emoji: π€
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 6.20.0
app_file: app.py
pinned: false
license: mit
---
# π€ Enterprise AI Document Intelligence Platform
An AI-powered Retrieval-Augmented Generation (RAG) application that enables users to upload PDF documents, perform semantic search, and interact with them using natural language. The application retrieves the most relevant document context using vector embeddings and generates grounded responses using Groq's Llama 3.3 model.
> π **Live Demo:** *(Add your Hugging Face Space URL after deployment)*
---
## β¨ Features
- π **Upload & Analyze PDFs**
- Upload enterprise documents, resumes, reports, manuals, or research papers.
- π **Semantic Search**
- Retrieves the most relevant document sections using Sentence Transformers and FAISS vector search.
- π€ **AI-Powered Question Answering**
- Generates context-aware answers using Groq Llama 3.3 with Retrieval-Augmented Generation (RAG).
- π¬ **Interactive Chat Interface**
- Ask follow-up questions naturally through a clean Gradio interface.
- π‘ **Grounded Responses**
- Answers are generated only from the uploaded document context to reduce hallucinations.
---
## π Tech Stack
| Category | Technologies |
|----------|--------------|
| Frontend | Gradio |
| LLM | Groq Llama 3.3-70B Versatile |
| Embeddings | Sentence Transformers (all-MiniLM-L6-v2) |
| Vector Database | FAISS |
| PDF Processing | PyMuPDF |
| Language | Python |
---
## π Architecture
```text
PDF Upload
β
βΌ
PyMuPDF
β
βΌ
Text Chunking
β
βΌ
Sentence Transformer Embeddings
β
βΌ
FAISS Vector Index
β
βΌ
Semantic Retrieval
β
βΌ
Groq Llama 3.3
β
βΌ
Grounded AI Response
```
---
## π Getting Started
### 1. Clone the repository
```bash
git clone <repository-url>
cd Enterprise-AI-HF-Space
```
### 2. Create a virtual environment
```bash
python -m venv .venv
```
Activate it:
**Windows**
```bash
.venv\Scripts\activate
```
**Linux / macOS**
```bash
source .venv/bin/activate
```
### 3. Install dependencies
```bash
pip install -r requirements.txt
```
### 4. Configure environment variables
Create a `.env` file:
```env
GROQ_API_KEY=your_groq_api_key
```
### 5. Run the application
```bash
python app.py
```
---
## π Example Questions
- Summarize this document.
- What are the key technical skills?
- List the projects mentioned.
- What experience does this resume highlight?
- What are the major findings in this report?
---
## π― Use Cases
- Resume Analysis
- Enterprise Knowledge Search
- Research Paper Exploration
- Policy & Compliance Documents
- Technical Documentation
- Business Reports
---
## π License
This project is released under the MIT License. |