Spaces:
Sleeping
Sleeping
File size: 1,245 Bytes
9bf28f1 47f6bf1 9bf28f1 47f6bf1 80ff8d2 47f6bf1 80ff8d2 47f6bf1 80ff8d2 47f6bf1 80ff8d2 47f6bf1 80ff8d2 47f6bf1 80ff8d2 47f6bf1 80ff8d2 4849705 80ff8d2 47f6bf1 80ff8d2 47f6bf1 80ff8d2 47f6bf1 80ff8d2 47f6bf1 | 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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | ---
title: Finance RAG Analyst
emoji: 📉
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: 6.5.1
app_file: app.py
pinned: false
license: mit
---
# Financial RAG Demo
This demo showcases a **constrained Financial RAG pipeline** designed to reduce hallucinations through **explicit routing and hard constraints**, not prompt tricks.
---
## What this demo does
- Routes queries based on detected company entities (Apple / Microsoft)
- Prevents accidental cross-company document mixing
- Processes financial tables as images to preserve structure
- Explicitly rejects unsupported or ambiguous queries
---
## How to test it
Try the following queries:
- `What was Apple’s total revenue in 2023?`
- `What is Microsoft’s operating income?`
- `Compare Apple and Microsoft revenues` → rejected or limited
- `What was Google’s revenue in 2023?` → rejected
The UI shows retrieved pages and scores to make the pipeline inspectable.
---
## Important limitations
- Explicit multi-company questions may trigger cross-entity reasoning
- Source-constrained prompts are not strictly enforced
- Dataset is intentionally small (demo-only)
For full technical details and design discussion, see the GitHub repository linked on the CV. |