Spaces:
Sleeping
Sleeping
github-actions[bot] commited on
Commit Β·
874be7e
1
Parent(s): fa8d5c5
Deploy: Use HF-specific README with metadata
Browse files
README.md
CHANGED
|
@@ -1,154 +1,95 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
**Turn documents into answers. Instantly.**
|
| 6 |
|
| 7 |
-
Upload contracts, research papers, or financial reports
|
| 8 |
-
|
| 9 |
-
[](https://pkgprateek-ai-rag-document.hf.space/)
|
| 10 |
-
[](https://github.com/pkgprateek/ai-rag-document/actions/workflows/deploy-to-hf.yml)
|
| 11 |
-
[](https://www.python.org/downloads/)
|
| 12 |
-
[](LICENSE)
|
| 13 |
-
|
| 14 |
-
<a href="https://pkgprateek-ai-rag-document.hf.space/">
|
| 15 |
-
<img src="assets/demo-screenshot.jpeg" alt="Enterprise RAG Demo" width="700"/>
|
| 16 |
-
</a>
|
| 17 |
-
|
| 18 |
-
</div>
|
| 19 |
|
| 20 |
---
|
| 21 |
|
| 22 |
-
##
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
```
|
| 31 |
-
Upload
|
| 32 |
```
|
| 33 |
|
| 34 |
-
|
| 35 |
|
| 36 |
---
|
| 37 |
|
| 38 |
-
##
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
| **Session isolation** | Your documents are private to your session |
|
| 47 |
-
| **Auto-cleanup** | Documents auto-deleted after 7 days |
|
| 48 |
|
| 49 |
---
|
| 50 |
|
| 51 |
-
##
|
| 52 |
-
|
| 53 |
-
```mermaid
|
| 54 |
-
flowchart LR
|
| 55 |
-
subgraph Input
|
| 56 |
-
A[π PDF / DOCX / TXT]
|
| 57 |
-
end
|
| 58 |
-
|
| 59 |
-
subgraph Processing
|
| 60 |
-
B[βοΈ Chunk<br/>1000 chars]
|
| 61 |
-
C[π§ Embed<br/>bge-small-en-v1.5]
|
| 62 |
-
D[(πΎ ChromaDB)]
|
| 63 |
-
end
|
| 64 |
-
|
| 65 |
-
subgraph Query
|
| 66 |
-
E[π¬ Question]
|
| 67 |
-
F[π― Top-4 Retrieval]
|
| 68 |
-
G[π€ LLM Stream]
|
| 69 |
-
H[π Cited Answer]
|
| 70 |
-
end
|
| 71 |
-
|
| 72 |
-
A --> B --> C --> D
|
| 73 |
-
E --> F --> G --> H
|
| 74 |
-
D --> F
|
| 75 |
-
```
|
| 76 |
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
---
|
| 80 |
|
| 81 |
-
##
|
| 82 |
-
|
| 83 |
-
### Docker (Recommended)
|
| 84 |
|
| 85 |
```bash
|
| 86 |
git clone https://github.com/pkgprateek/rag-document-qa-workflow.git
|
| 87 |
cd rag-document-qa-workflow
|
| 88 |
-
|
| 89 |
-
# Add your API keys
|
| 90 |
echo "GROQ_API_KEY=your_key" > .env
|
| 91 |
-
echo "OPENROUTER_API_KEY=your_key" >> .env
|
| 92 |
-
|
| 93 |
docker compose up
|
|
|
|
| 94 |
```
|
| 95 |
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
### Local Development
|
| 99 |
-
|
| 100 |
-
```bash
|
| 101 |
-
uv venv && source .venv/bin/activate
|
| 102 |
-
uv pip install -r requirements.txt
|
| 103 |
-
python app/main.py
|
| 104 |
-
```
|
| 105 |
-
|
| 106 |
-
**Get Free API Keys:**
|
| 107 |
-
- [Groq](https://console.groq.com/keys) β Required (GPT-OSS, Llama)
|
| 108 |
-
- [OpenRouter](https://openrouter.ai/keys) β Optional (Gemma)
|
| 109 |
|
| 110 |
---
|
| 111 |
|
| 112 |
-
##
|
| 113 |
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
| **Citation accuracy** | 93-96% relevance |
|
| 119 |
-
| **Streaming** | First token in <500ms |
|
| 120 |
|
| 121 |
---
|
| 122 |
|
| 123 |
## Enterprise Pilots
|
| 124 |
|
| 125 |
-
**2-week paid pilots** for teams ready to deploy RAG on their infrastructure
|
| 126 |
-
|
| 127 |
-
| Week | Deliverables |
|
| 128 |
-
|------|--------------|
|
| 129 |
-
| **Week 1** | Document ingestion, chunking tuned for your domain |
|
| 130 |
-
| **Week 2** | Deployment, team training, ROI analysis |
|
| 131 |
-
|
| 132 |
-
**Includes:** Custom RAG system Β· Performance benchmarks Β· 30-day support
|
| 133 |
-
|
| 134 |
-
<p align="center">
|
| 135 |
-
<a href="https://cal.com/prateekgoel/30m-discovery-call">
|
| 136 |
-
<img src="https://img.shields.io/badge/π
_Book_Discovery_Call-00C853?style=for-the-badge" alt="Book Call"/>
|
| 137 |
-
</a>
|
| 138 |
-
</p>
|
| 139 |
-
|
| 140 |
-
---
|
| 141 |
-
|
| 142 |
-
## Contact
|
| 143 |
-
|
| 144 |
-
**Prateek Kumar Goel**
|
| 145 |
|
| 146 |
-
[
|
| 147 |
-
[](https://github.com/pkgprateek)
|
| 148 |
-
[](https://huggingface.co/pkgprateek)
|
| 149 |
|
| 150 |
---
|
| 151 |
|
| 152 |
-
|
| 153 |
-
<sub>MIT License Β· Built with β€οΈ for enterprise document intelligence</sub>
|
| 154 |
-
</p>
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Enterprise RAG Platform
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 5.49.1
|
| 8 |
+
app_file: app/main.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
short_description: Document intelligence for Legal, Research, FinOps
|
| 12 |
+
full_width: true
|
| 13 |
+
---
|
| 14 |
|
| 15 |
+
# Enterprise RAG Platform
|
| 16 |
|
| 17 |
**Turn documents into answers. Instantly.**
|
| 18 |
|
| 19 |
+
Upload contracts, research papers, or financial reports β Ask questions β Get cited answers in seconds.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
---
|
| 22 |
|
| 23 |
+
## β¨ What's New
|
| 24 |
|
| 25 |
+
- **Multi-document upload** β Process multiple files at once
|
| 26 |
+
- **Streaming answers** β Watch responses generate in real-time
|
| 27 |
+
- **Thinking indicator** β See "π Analyzing documents..." before streaming starts
|
| 28 |
|
| 29 |
+
---
|
| 30 |
|
| 31 |
+
## How It Works
|
| 32 |
|
| 33 |
```
|
| 34 |
+
π Upload β βοΈ Chunk β π§ Embed β π¬ Ask β β¨ Cited Answer
|
| 35 |
```
|
| 36 |
|
| 37 |
+
**3 steps**: Upload your documents β Ask questions β Get answers with page citations.
|
| 38 |
|
| 39 |
---
|
| 40 |
|
| 41 |
+
## Try It Now
|
| 42 |
|
| 43 |
+
1. **Select a vertical** β Legal, Research, or FinOps samples pre-loaded
|
| 44 |
+
2. **Or upload your own** β PDF, DOCX, TXT supported (batch upload enabled)
|
| 45 |
+
3. **Ask anything** β Natural language questions
|
| 46 |
+
4. **Get streaming answers** β Watch the AI think and respond in real-time
|
| 47 |
+
|
| 48 |
+
No signup required. Documents auto-deleted after 7 days.
|
|
|
|
|
|
|
| 49 |
|
| 50 |
---
|
| 51 |
|
| 52 |
+
## Features
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
+
| Feature | Description |
|
| 55 |
+
|---------|-------------|
|
| 56 |
+
| **Multi-upload** | Upload multiple files at once |
|
| 57 |
+
| **Streaming** | Real-time token-by-token answers |
|
| 58 |
+
| **Citations** | Every answer links to source + page |
|
| 59 |
+
| **3 AI models** | GPT-OSS 120B, Llama 3.3, Gemma 3 |
|
| 60 |
+
| **Privacy** | Session isolation, 7-day auto-delete |
|
| 61 |
|
| 62 |
---
|
| 63 |
|
| 64 |
+
## Run Locally
|
|
|
|
|
|
|
| 65 |
|
| 66 |
```bash
|
| 67 |
git clone https://github.com/pkgprateek/rag-document-qa-workflow.git
|
| 68 |
cd rag-document-qa-workflow
|
|
|
|
|
|
|
| 69 |
echo "GROQ_API_KEY=your_key" > .env
|
|
|
|
|
|
|
| 70 |
docker compose up
|
| 71 |
+
# β http://localhost:7860
|
| 72 |
```
|
| 73 |
|
| 74 |
+
**API Keys:** [Groq](https://console.groq.com/keys) (Required) Β· [OpenRouter](https://openrouter.ai/keys) (Optional)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
---
|
| 77 |
|
| 78 |
+
## π Privacy
|
| 79 |
|
| 80 |
+
- Documents processed locally
|
| 81 |
+
- Session-isolated storage
|
| 82 |
+
- Auto-deleted after 7 days
|
| 83 |
+
- Never used for training
|
|
|
|
|
|
|
| 84 |
|
| 85 |
---
|
| 86 |
|
| 87 |
## Enterprise Pilots
|
| 88 |
|
| 89 |
+
**2-week paid pilots** for teams ready to deploy RAG on their infrastructure.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
+
π
[Book discovery call](https://cal.com/prateekgoel/30m-discovery-call)
|
|
|
|
|
|
|
| 92 |
|
| 93 |
---
|
| 94 |
|
| 95 |
+
**Built by [Prateek Kumar Goel](https://github.com/pkgprateek)** Β· MIT License
|
|
|
|
|
|