Spaces:
Sleeping
Sleeping
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
title: Hybrid RAG API
|
| 4 |
+
sdk: docker
|
| 5 |
+
colorTo: blue
|
| 6 |
+
pinned: false
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
# Hybrid RAG Retrieval API
|
| 11 |
+
|
| 12 |
+
**BM25 + E5 Embeddings | 93% Recall@10 | MRR=1.0 | MSc Data Science Thesis 2026**
|
| 13 |
+
|
| 14 |
+
## Live Endpoints
|
| 15 |
+
|
| 16 |
+
| Endpoint | Description |
|
| 17 |
+
|----------|-------------|
|
| 18 |
+
| `GET /` | API info and metrics |
|
| 19 |
+
| `POST /search` | Hybrid search |
|
| 20 |
+
| `GET /health` | Health check |
|
| 21 |
+
| `GET /docs` | Swagger UI |
|
| 22 |
+
|
| 23 |
+
## Example Request
|
| 24 |
+
```json
|
| 25 |
+
POST /search
|
| 26 |
+
{
|
| 27 |
+
"query": "What is machine learning?",
|
| 28 |
+
"method": "hybrid",
|
| 29 |
+
"top_k": 5,
|
| 30 |
+
"alpha": 0.7
|
| 31 |
+
}
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Key Results
|
| 35 |
+
|
| 36 |
+
- **93.0%** Recall@10 on MS MARCO
|
| 37 |
+
- **+11.4%** improvement over baseline
|
| 38 |
+
- **MRR = 1.0** (Perfect)
|
| 39 |
+
- **Optimal α = 0.70** (statistically proven, p=0.002)
|
| 40 |
+
|
| 41 |
+
## Links
|
| 42 |
+
|
| 43 |
+
- [Live Demo](https://rohith2026-hybrid-rag-demo.hf.space)
|
| 44 |
+
- [arXiv Paper](https://arxiv.org/abs/2507.18910)
|
| 45 |
+
- [GitHub](https://github.com/RohithkumarReddipogula/AI-Powered-Rag-System)
|
| 46 |
+
|
| 47 |
+
**Built by Rohith Kumar Reddipogula | University of Europe for Applied Sciences, Potsdam**
|