Update README with Next.js web app, Claude integration, and fused design system docs
Browse files
README.md
CHANGED
|
@@ -3,261 +3,195 @@
|
|
| 3 |
<div align="center">
|
| 4 |
|
| 5 |
[](https://www.tigergraph.com/)
|
| 6 |
-
[](https://hotpotqa.github.io/)
|
| 9 |
[](https://ragas.io/)
|
| 10 |
|
| 11 |
**Proving that graphs make LLM inference faster, cheaper, and smarter β with real numbers.**
|
| 12 |
|
| 13 |
-
[
|
| 14 |
|
| 15 |
</div>
|
| 16 |
|
| 17 |
---
|
| 18 |
|
| 19 |
-
##
|
| 20 |
-
|
| 21 |
-
- [Overview](#-overview)
|
| 22 |
-
- [Architecture](#-architecture-ai-factory-model)
|
| 23 |
-
- [Novel Features](#-novel-features)
|
| 24 |
-
- [Quick Start](#-quick-start)
|
| 25 |
-
- [Detailed Setup](#-detailed-setup)
|
| 26 |
-
- [How It Works](#-how-it-works)
|
| 27 |
-
- [Benchmark Results](#-benchmark-results)
|
| 28 |
-
- [Dashboard Guide](#-dashboard-guide)
|
| 29 |
-
- [Tech Stack](#-tech-stack)
|
| 30 |
-
- [Project Structure](#-project-structure)
|
| 31 |
-
- [References](#-references)
|
| 32 |
|
| 33 |
-
--
|
| 34 |
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
-
|
| 38 |
|
| 39 |
| | **Pipeline A: Baseline RAG** | **Pipeline B: GraphRAG** |
|
| 40 |
|---|---|---|
|
| 41 |
-
| **
|
| 42 |
-
| **
|
| 43 |
-
| **Weakness** | Misses cross-document connections | Higher token overhead |
|
| 44 |
-
| **When to use** | Simple factoid questions | Bridge, comparison, multi-hop reasoning |
|
| 45 |
-
|
| 46 |
-
A **4-tab Gradio dashboard** provides real-time comparison with interactive visualizations, benchmarking, cost analysis, and knowledge graph exploration.
|
| 47 |
|
| 48 |
---
|
| 49 |
|
| 50 |
-
## ποΈ Architecture
|
| 51 |
-
|
| 52 |
-
We follow the **AI Factory architecture** with 4 clean, separated layers:
|
| 53 |
|
| 54 |
```
|
| 55 |
-
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 56 |
-
β
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
β
|
| 61 |
-
|
| 62 |
-
β
|
| 63 |
-
|
| 64 |
-
β
|
| 65 |
-
|
| 66 |
-
βββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββ€
|
| 67 |
-
β GRAPH LAYER (Layer 1) β
|
| 68 |
-
β TigerGraph: Entities + Relations + Chunks + Documents + Communities β
|
| 69 |
-
β GSQL Queries: Vector Search β Multi-Hop Traversal β Stats β
|
| 70 |
-
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 71 |
```
|
| 72 |
|
| 73 |
-
### Layer Separation Benefits
|
| 74 |
-
- **Scalable**: Each layer can be independently scaled
|
| 75 |
-
- **Reusable**: Swap LLM providers, graph DBs, or evaluation frameworks
|
| 76 |
-
- **Testable**: Each layer has clear interfaces
|
| 77 |
-
- **Production-Ready**: Modular design enables real-world deployment
|
| 78 |
-
|
| 79 |
---
|
| 80 |
|
| 81 |
## π Novel Features
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
The router classifies queries as: `factoid | comparison | bridge | multi_hop`
|
| 89 |
-
|
| 90 |
-
### 2. π Schema-Bounded Entity Extraction
|
| 91 |
-
Instead of unconstrained extraction (noisy, expensive), we pre-define:
|
| 92 |
-
- **9 Entity Types**: PERSON, ORGANIZATION, LOCATION, EVENT, DATE, CONCEPT, WORK, PRODUCT, TECHNOLOGY
|
| 93 |
-
- **15 Relation Types**: WORKS_FOR, LOCATED_IN, FOUNDED_BY, PART_OF, etc.
|
| 94 |
-
|
| 95 |
-
**Result**: ~90% token cost reduction in extraction, ~16% accuracy gain (based on [Youtu-GraphRAG](https://arxiv.org/abs/2508.19855))
|
| 96 |
-
|
| 97 |
-
### 3. π Dual-Level Keyword Retrieval
|
| 98 |
-
Inspired by [LightRAG](https://arxiv.org/abs/2410.05779) (34K+ GitHub stars):
|
| 99 |
-
- **High-level keywords**: Abstract themes β match on relationship descriptions
|
| 100 |
-
- **Low-level keywords**: Specific entities β match on entity embeddings
|
| 101 |
-
|
| 102 |
-
### 4. π Graph Reasoning Path Explanation
|
| 103 |
-
For every GraphRAG answer, generates a step-by-step explanation:
|
| 104 |
-
```
|
| 105 |
-
1. Entry Points: Entered via [Scott Derrickson, Ed Wood]
|
| 106 |
-
2. Traversal: Followed NATIONALITY relationships (2 hops)
|
| 107 |
-
3. Evidence: Scott Derrickson β BORN_IN β US; Ed Wood β BORN_IN β US
|
| 108 |
-
4. Conclusion: Both American β Same nationality β
|
| 109 |
-
```
|
| 110 |
-
|
| 111 |
-
### 5. π Comprehensive Cost Tracking
|
| 112 |
-
Every LLM call tracked: input/output tokens, cost per query, latency per component, cumulative projections at scale.
|
| 113 |
|
| 114 |
---
|
| 115 |
|
| 116 |
-
##
|
| 117 |
|
| 118 |
-
|
| 119 |
|
| 120 |
-
|
| 121 |
-
git clone https://huggingface.co/muthuk1/graphrag-inference-hackathon
|
| 122 |
-
cd graphrag-inference-hackathon
|
| 123 |
-
pip install -r requirements.txt
|
| 124 |
-
```
|
| 125 |
-
|
| 126 |
-
### 2. Set Environment Variables
|
| 127 |
|
| 128 |
```bash
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
|
|
|
|
|
|
|
|
|
| 132 |
```
|
| 133 |
|
| 134 |
-
###
|
| 135 |
-
|
| 136 |
-
```bash
|
| 137 |
-
# Full dashboard
|
| 138 |
-
python -m graphrag.main dashboard
|
| 139 |
|
| 140 |
-
|
| 141 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
|
| 143 |
-
#
|
| 144 |
-
python -m graphrag.main benchmark --samples 50
|
| 145 |
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
|
| 150 |
---
|
| 151 |
|
| 152 |
-
##
|
| 153 |
|
| 154 |
-
|
| 155 |
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
3. Run: `python -m graphrag.setup_tigergraph`
|
| 159 |
|
| 160 |
-
###
|
| 161 |
-
|
| 162 |
-
-
|
| 163 |
-
-
|
| 164 |
-
-
|
|
|
|
| 165 |
|
| 166 |
---
|
| 167 |
|
| 168 |
-
##
|
| 169 |
|
| 170 |
-
|
| 171 |
-
```
|
| 172 |
-
Query β Embed β Vector Search (cosine) β Top-K Chunks β LLM β Answer
|
| 173 |
-
```
|
| 174 |
|
| 175 |
-
###
|
| 176 |
-
```
|
| 177 |
-
Query β Dual-Level Keywords β Entity Vector Search β Multi-Hop Traversal (2-hop BFS)
|
| 178 |
-
β Collect Entities + Relations + Chunks β Structured Context β LLM β Answer
|
| 179 |
-
```
|
| 180 |
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
```
|
| 186 |
|
| 187 |
---
|
| 188 |
|
| 189 |
## π Benchmark Results
|
| 190 |
|
| 191 |
-
### HotpotQA
|
| 192 |
|
| 193 |
| Metric | Baseline RAG | GraphRAG | Winner |
|
| 194 |
|--------|-------------|----------|--------|
|
| 195 |
-
| **Avg F1
|
| 196 |
-
| **Avg
|
| 197 |
-
| **Context Hit
|
| 198 |
-
| **
|
| 199 |
-
| **
|
| 200 |
|
| 201 |
### By Question Type
|
| 202 |
|
| 203 |
| Type | Baseline F1 | GraphRAG F1 | Ξ |
|
| 204 |
|------|------------|-------------|---|
|
| 205 |
-
| **Bridge**
|
| 206 |
| **Comparison** | 0.58 | **0.61** | +5% |
|
| 207 |
|
| 208 |
-
> **Key Insight**: GraphRAG excels on complex multi-hop queries where connecting
|
| 209 |
-
> information across documents is critical. The **Adaptive Router** achieves the
|
| 210 |
-
> best of both: GraphRAG accuracy on complex queries + baseline efficiency on simple ones.
|
| 211 |
-
|
| 212 |
-
---
|
| 213 |
-
|
| 214 |
-
## π₯οΈ Dashboard Guide
|
| 215 |
-
|
| 216 |
-
| Tab | Features |
|
| 217 |
-
|-----|----------|
|
| 218 |
-
| **π΄ Live Comparison** | Side-by-side answers, real-time metrics, adaptive routing, context inspection |
|
| 219 |
-
| **π Batch Benchmark** | HotpotQA eval (10-500 samples), summary table, bar/radar charts, full report |
|
| 220 |
-
| **π° Cost Analysis** | Multi-model projections, cumulative cost curves, token distributions |
|
| 221 |
-
| **πΈοΈ Graph Explorer** | Interactive graph viz, color-coded entities, reasoning path explanation |
|
| 222 |
-
|
| 223 |
-
---
|
| 224 |
-
|
| 225 |
-
## π οΈ Tech Stack
|
| 226 |
-
|
| 227 |
-
| Component | Technology |
|
| 228 |
-
|-----------|-----------|
|
| 229 |
-
| Graph Database | TigerGraph Cloud |
|
| 230 |
-
| LLM | GPT-4o-mini (OpenAI) |
|
| 231 |
-
| Embeddings | text-embedding-3-small |
|
| 232 |
-
| Evaluation | RAGAS + Custom (F1, EM) |
|
| 233 |
-
| Dashboard | Gradio + Plotly |
|
| 234 |
-
| Dataset | HotpotQA (distractor) |
|
| 235 |
-
| Visualization | NetworkX + Plotly |
|
| 236 |
-
|
| 237 |
---
|
| 238 |
|
| 239 |
## π Project Structure
|
| 240 |
|
| 241 |
```
|
| 242 |
graphrag-inference-hackathon/
|
| 243 |
-
βββ
|
| 244 |
-
β βββ
|
| 245 |
-
β βββ
|
| 246 |
-
β βββ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
β βββ benchmark.py # Batch benchmark runner
|
| 248 |
-
β βββ ingestion.py # Document ingestion
|
| 249 |
-
β
|
| 250 |
-
β
|
| 251 |
-
|
| 252 |
-
β β βββ settings.py # Configuration
|
| 253 |
-
β βββ layers/
|
| 254 |
-
β βββ __init__.py
|
| 255 |
-
β βββ graph_layer.py # Layer 1: TigerGraph
|
| 256 |
-
β βββ llm_layer.py # Layer 3: LLM
|
| 257 |
-
β βββ orchestration_layer.py # Layer 2: Dual pipeline
|
| 258 |
-
β βββ evaluation_layer.py # Layer 4: Evaluation
|
| 259 |
-
βββ requirements.txt
|
| 260 |
-
βββ .env.example
|
| 261 |
βββ README.md
|
| 262 |
```
|
| 263 |
|
|
@@ -266,14 +200,14 @@ graphrag-inference-hackathon/
|
|
| 266 |
## π References
|
| 267 |
|
| 268 |
### Papers
|
| 269 |
-
1.
|
| 270 |
-
2.
|
| 271 |
-
3.
|
| 272 |
-
4.
|
| 273 |
-
5.
|
| 274 |
|
| 275 |
### Tools
|
| 276 |
-
|
| 277 |
|
| 278 |
---
|
| 279 |
|
|
@@ -281,6 +215,6 @@ graphrag-inference-hackathon/
|
|
| 281 |
|
| 282 |
**Built for the GraphRAG Inference Hackathon by TigerGraph** π§‘
|
| 283 |
|
| 284 |
-
*
|
| 285 |
|
| 286 |
</div>
|
|
|
|
| 3 |
<div align="center">
|
| 4 |
|
| 5 |
[](https://www.tigergraph.com/)
|
| 6 |
+
[](https://anthropic.com/)
|
| 7 |
+
[](https://nextjs.org/)
|
| 8 |
[](https://hotpotqa.github.io/)
|
| 9 |
[](https://ragas.io/)
|
| 10 |
|
| 11 |
**Proving that graphs make LLM inference faster, cheaper, and smarter β with real numbers.**
|
| 12 |
|
| 13 |
+
[Web Dashboard](#-web-dashboard-nextjs) Β· [Architecture](#-architecture) Β· [Benchmarks](#-benchmark-results) Β· [Novelties](#-novel-features) Β· [Design System](#-design-system)
|
| 14 |
|
| 15 |
</div>
|
| 16 |
|
| 17 |
---
|
| 18 |
|
| 19 |
+
## π― Overview
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+
A **production-ready dual-pipeline GraphRAG system** with two interfaces:
|
| 22 |
|
| 23 |
+
| | **Next.js Web Dashboard** | **Python CLI + Gradio** |
|
| 24 |
+
|---|---|---|
|
| 25 |
+
| **LLM** | Claude Sonnet 4 (Anthropic) | GPT-4o-mini (OpenAI) |
|
| 26 |
+
| **Frontend** | React 19 + Recharts + Custom SVG | Gradio 6.x + Plotly |
|
| 27 |
+
| **Design** | TigerGraph Γ Claude fused design system | Standard Gradio |
|
| 28 |
+
| **Best for** | Demos, presentations, judging | Benchmarking, batch eval |
|
| 29 |
|
| 30 |
+
Both interfaces run the same dual-pipeline comparison:
|
| 31 |
|
| 32 |
| | **Pipeline A: Baseline RAG** | **Pipeline B: GraphRAG** |
|
| 33 |
|---|---|---|
|
| 34 |
+
| **Flow** | Query β Vector Search β Top-K β LLM | Query β Keywords β Entity Search β Graph Traversal β LLM |
|
| 35 |
+
| **Wins on** | Speed, cost, simple queries | Accuracy on complex multi-hop queries (+21% F1) |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
---
|
| 38 |
|
| 39 |
+
## ποΈ Architecture
|
|
|
|
|
|
|
| 40 |
|
| 41 |
```
|
| 42 |
+
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 43 |
+
β LAYER 4: EVALUATION β RAGAS + F1/EM + Cost/Token Tracking β
|
| 44 |
+
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
| 45 |
+
β LAYER 3: LLM β Claude Sonnet 4 Β· Entity/Keyword Extraction β
|
| 46 |
+
ββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββ€
|
| 47 |
+
β Pipeline A: Baseline β Pipeline B: GraphRAG β
|
| 48 |
+
β QueryβVectorβLLM β QueryβKeywordsβGraphβContextβLLM β
|
| 49 |
+
β β π§ Adaptive Router β
|
| 50 |
+
ββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββ€
|
| 51 |
+
β LAYER 1: GRAPH β TigerGraph Cloud Β· GSQL Β· Multi-hop BFS β
|
| 52 |
+
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
```
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
---
|
| 56 |
|
| 57 |
## π Novel Features
|
| 58 |
|
| 59 |
+
1. **π§ Adaptive Query Router** β Automatically routes simple queries to baseline (cheaper) and complex ones to GraphRAG (more accurate)
|
| 60 |
+
2. **π Schema-Bounded Extraction** β Pre-defined 9 entity types + 15 relation types (~90% cheaper, ~16% more accurate)
|
| 61 |
+
3. **π Dual-Level Keywords** β LightRAG-inspired high-level + low-level keyword routing
|
| 62 |
+
4. **π Graph Reasoning Paths** β Step-by-step natural language explanation of graph traversal
|
| 63 |
+
5. **π Real-Time Cost Tracking** β Every LLM call tracked with tokens, cost, and latency
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
---
|
| 66 |
|
| 67 |
+
## π₯οΈ Web Dashboard (Next.js)
|
| 68 |
|
| 69 |
+
The flagship interface β a polished React app with the **TigerGraph Γ Claude fused design system**.
|
| 70 |
|
| 71 |
+
### Quick Start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
```bash
|
| 74 |
+
cd web
|
| 75 |
+
npm install
|
| 76 |
+
cp .env.example .env.local
|
| 77 |
+
# Add your Anthropic API key: ANTHROPIC_API_KEY=sk-ant-...
|
| 78 |
+
npm run dev
|
| 79 |
+
# Open http://localhost:3000
|
| 80 |
```
|
| 81 |
|
| 82 |
+
### 4 Tabs
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
+
| Tab | What It Does |
|
| 85 |
+
|-----|-------------|
|
| 86 |
+
| **π΄ Live Compare** | Side-by-side answers from both pipelines with real-time metrics, adaptive routing badges, entity/relation display |
|
| 87 |
+
| **π Benchmark** | Radar charts, bar charts, detailed comparison table with HotpotQA results |
|
| 88 |
+
| **π° Cost Analysis** | Interactive cost projections across 4 LLM models, cumulative cost area charts, ROI analysis |
|
| 89 |
+
| **πΈοΈ Graph Explorer** | Interactive SVG knowledge graph with clickable nodes, reasoning path explanation, graph statistics |
|
| 90 |
|
| 91 |
+
### Tech Stack
|
|
|
|
| 92 |
|
| 93 |
+
| Layer | Technology |
|
| 94 |
+
|-------|-----------|
|
| 95 |
+
| Framework | Next.js 15 (App Router) |
|
| 96 |
+
| React | React 19 |
|
| 97 |
+
| LLM | Claude Sonnet 4 via `@anthropic-ai/sdk` |
|
| 98 |
+
| Charts | Recharts 2.15 |
|
| 99 |
+
| Graph Viz | Custom SVG with interaction |
|
| 100 |
+
| Styling | Tailwind CSS 4 + 14KB custom design system |
|
| 101 |
+
| Fonts | Cormorant Garamond (serif display) + Inter (sans body) + JetBrains Mono (code) |
|
| 102 |
|
| 103 |
---
|
| 104 |
|
| 105 |
+
## π¨ Design System
|
| 106 |
|
| 107 |
+
The web dashboard uses a **fused design system** combining:
|
| 108 |
|
| 109 |
+
- **TigerGraph**: Orange `#FF6B00` (energy, CTAs), Navy `#002B49` (authority, text), Electric Blue `#0072CE` (baseline pipeline)
|
| 110 |
+
- **Claude/Anthropic**: Cream canvas `#faf9f5` (warmth), Coral `#cc785c` (intelligence), Dark surfaces `#181715` (product chrome)
|
|
|
|
| 111 |
|
| 112 |
+
### Key Principles
|
| 113 |
+
- Warm cream canvas (never cold white) β the Claude editorial feel
|
| 114 |
+
- Serif display headlines (Cormorant Garamond, weight 400, negative tracking) β literary voice
|
| 115 |
+
- Tiger Orange for primary CTAs β energy and action
|
| 116 |
+
- Dark surface code windows for architecture diagrams β product chrome
|
| 117 |
+
- Cream β Dark alternating section rhythm
|
| 118 |
|
| 119 |
---
|
| 120 |
|
| 121 |
+
## π Python Backend + Gradio
|
| 122 |
|
| 123 |
+
The Python backend handles benchmarking, TigerGraph ingestion, and batch evaluation.
|
|
|
|
|
|
|
|
|
|
| 124 |
|
| 125 |
+
### Quick Start
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
|
| 127 |
+
```bash
|
| 128 |
+
pip install -r requirements.txt
|
| 129 |
+
cp .env.example .env
|
| 130 |
+
# Add: OPENAI_API_KEY=sk-...
|
| 131 |
+
|
| 132 |
+
python -m graphrag.main dashboard # Gradio UI on :7860
|
| 133 |
+
python -m graphrag.main demo # CLI demo
|
| 134 |
+
python -m graphrag.main benchmark --samples 50
|
| 135 |
+
python -m graphrag.main ingest --samples 100 # Requires TigerGraph
|
| 136 |
```
|
| 137 |
|
| 138 |
---
|
| 139 |
|
| 140 |
## π Benchmark Results
|
| 141 |
|
| 142 |
+
### HotpotQA (Distractor Setting, 100 samples)
|
| 143 |
|
| 144 |
| Metric | Baseline RAG | GraphRAG | Winner |
|
| 145 |
|--------|-------------|----------|--------|
|
| 146 |
+
| **Avg F1** | 0.5523 | **0.6241** | β
GraphRAG (+13%) |
|
| 147 |
+
| **Avg EM** | 0.3810 | **0.4230** | β
GraphRAG (+11%) |
|
| 148 |
+
| **Context Hit** | 0.4520 | **0.5830** | β
GraphRAG (+29%) |
|
| 149 |
+
| **Tokens/Query** | **952** | 2,387 | β
Baseline (2.5Γ) |
|
| 150 |
+
| **Cost/Query** | **$0.000203** | $0.000518 | β
Baseline (2.6Γ) |
|
| 151 |
|
| 152 |
### By Question Type
|
| 153 |
|
| 154 |
| Type | Baseline F1 | GraphRAG F1 | Ξ |
|
| 155 |
|------|------------|-------------|---|
|
| 156 |
+
| **Bridge** | 0.52 | **0.63** | **+21%** |
|
| 157 |
| **Comparison** | 0.58 | **0.61** | +5% |
|
| 158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
---
|
| 160 |
|
| 161 |
## π Project Structure
|
| 162 |
|
| 163 |
```
|
| 164 |
graphrag-inference-hackathon/
|
| 165 |
+
βββ web/ # Next.js Web Dashboard
|
| 166 |
+
β βββ src/app/
|
| 167 |
+
β β βββ page.tsx # Main page
|
| 168 |
+
β β βββ layout.tsx # Root layout
|
| 169 |
+
β β βββ globals.css # 14KB fused design system
|
| 170 |
+
β β βββ api/compare/route.ts # Claude-powered API
|
| 171 |
+
β βββ src/components/
|
| 172 |
+
β β βββ Navbar.tsx # TigerGraphΓClaude navbar
|
| 173 |
+
β β βββ Hero.tsx # Editorial hero with stats
|
| 174 |
+
β β βββ DashboardTabs.tsx # Tab controller
|
| 175 |
+
β β βββ Footer.tsx # Dark footer
|
| 176 |
+
β β βββ tabs/
|
| 177 |
+
β β βββ LiveCompare.tsx # Tab 1: Side-by-side comparison
|
| 178 |
+
β β βββ Benchmark.tsx # Tab 2: Radar + bar charts
|
| 179 |
+
β β βββ CostAnalysis.tsx # Tab 3: Cost projections
|
| 180 |
+
β β βββ GraphExplorer.tsx # Tab 4: Interactive graph viz
|
| 181 |
+
β βββ src/lib/design-tokens.ts # Color + typography tokens
|
| 182 |
+
β
|
| 183 |
+
βββ graphrag/ # Python Backend
|
| 184 |
+
β βββ layers/
|
| 185 |
+
β β βββ graph_layer.py # Layer 1: TigerGraph
|
| 186 |
+
β β βββ orchestration_layer.py # Layer 2: Dual pipeline
|
| 187 |
+
β β βββ llm_layer.py # Layer 3: LLM
|
| 188 |
+
β β βββ evaluation_layer.py # Layer 4: Evaluation
|
| 189 |
+
β βββ dashboard.py # Gradio dashboard
|
| 190 |
β βββ benchmark.py # Batch benchmark runner
|
| 191 |
+
β βββ ingestion.py # Document ingestion
|
| 192 |
+
β βββ main.py # CLI entry point
|
| 193 |
+
β
|
| 194 |
+
βββ requirements.txt # Python dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
βββ README.md
|
| 196 |
```
|
| 197 |
|
|
|
|
| 200 |
## π References
|
| 201 |
|
| 202 |
### Papers
|
| 203 |
+
1. [GraphRAG](https://arxiv.org/abs/2404.16130) β From Local to Global Graph RAG
|
| 204 |
+
2. [LightRAG](https://arxiv.org/abs/2410.05779) β Simple and Fast RAG (34Kβ)
|
| 205 |
+
3. [HotpotQA](https://arxiv.org/abs/1809.09600) β Multi-hop QA Dataset
|
| 206 |
+
4. [RAGAS](https://arxiv.org/abs/2309.15217) β RAG Evaluation Framework
|
| 207 |
+
5. [Youtu-GraphRAG](https://arxiv.org/abs/2508.19855) β Schema-Bounded Extraction
|
| 208 |
|
| 209 |
### Tools
|
| 210 |
+
[TigerGraph](https://tgcloud.io) Β· [Anthropic Claude](https://anthropic.com) Β· [Next.js](https://nextjs.org) Β· [Recharts](https://recharts.org) Β· [RAGAS](https://ragas.io) Β· [HotpotQA](https://huggingface.co/datasets/hotpotqa/hotpot_qa)
|
| 211 |
|
| 212 |
---
|
| 213 |
|
|
|
|
| 215 |
|
| 216 |
**Built for the GraphRAG Inference Hackathon by TigerGraph** π§‘
|
| 217 |
|
| 218 |
+
*TigerGraph Γ Claude Β· Next.js 15 Β· Recharts Β· RAGAS*
|
| 219 |
|
| 220 |
</div>
|