Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,33 +1,44 @@
|
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: GraphRAG-Live
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
+
app_file: ui.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
---
|
| 12 |
+
# GraphRAG-Live
|
| 13 |
+
|
| 14 |
+
**Hybrid Retrieval-Augmented Generation (RAG) with Graph + Vectors.**
|
| 15 |
+
|
| 16 |
+
This project shows how knowledge graphs (Neo4j Aura) and vector databases (Qdrant) can be combined with re-ranking heuristics to build a smarter, cheaper and more explainable RAG system.
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## π Features
|
| 21 |
+
- **Hybrid Retrieval:** Combines semantic search (Qdrant) with graph proximity scoring (Neo4j).
|
| 22 |
+
- **Dynamic Knowledge Injection:** Add new documents on the fly β pipeline updates instantly.
|
| 23 |
+
- **Evidence Subgraphs:** Each answer includes a small 2-hop evidence graph.
|
| 24 |
+
- **Metrics Dashboard:** Compare GraphRAG vs. baseline RAG on hit@10, nDCG@10, citation correctness.
|
| 25 |
+
- **Hosted Demo:** Deployed via Hugging Face Spaces (Gradio UI).
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
## ποΈ Architecture
|
| 30 |
+
|
| 31 |
+
```text
|
| 32 |
+
User Question
|
| 33 |
+
β
|
| 34 |
+
βΌ
|
| 35 |
+
[Qdrant: semantic chunks] + [Neo4j: graph proximity]
|
| 36 |
+
β
|
| 37 |
+
βΌ
|
| 38 |
+
Reranker (cosine + path proximity + freshness + degree)
|
| 39 |
+
β
|
| 40 |
+
βΌ
|
| 41 |
+
Answer Generator (OpenAI)
|
| 42 |
+
β
|
| 43 |
+
βΌ
|
| 44 |
+
Evidence Subgraph + Answer + Citations
|