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