File size: 3,502 Bytes
a1bfc84
 
 
 
 
b48661f
 
a1bfc84
de970e5
20f9156
 
 
 
 
 
 
 
 
 
 
 
 
685083e
20f9156
685083e
 
20f9156
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32283be
20f9156
 
 
 
 
 
 
82703ed
20f9156
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ba4e0f4
20f9156
82703ed
20f9156
 
 
4044951
20f9156
 
 
 
 
a1bfc84
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
license: mit
title: Personal Finance Advisor
sdk: gradio
emoji: πŸ“ˆ
colorFrom: blue
colorTo: purple
---
# πŸ“ˆ Vittaśāstra - AI Strategist Enhanced
## Agentic Demo Showcase – Track 3 Entry

> **Agent-Based Financial Advisor Using LlamaIndex, Nebius AI, and Economic Data**

Built by: **[Devavrat Samak]**  
Tech Stack: LlamaIndex | meta-llama/Meta-Llama-3.1-70B-Instruct-fast (Nebius) | Modal Labs | Gradio | World Bank & Yahoo Finance APIs

---

## Hackathon Track

This submission is for:
**Track 3: Agentic Demo Showcase**

agent-demo-track

- We use a multi-agent system to:
1. Analyze user financial profile
2. Enrich with demographic insights
3. Fetch live economic indicators
4. Generate personalized investment strategy

---

## πŸ” Overview

This agentic system provides intelligent, context-aware investment strategies based on:

| Feature | Description |
|--------|-------------|
| User Profile | Age group, income, expenses, risk tolerance, goal, timeframe |
| Demographic Insights | Life stage, liquidity needs, planning horizon |
| Economic Analysis | Inflation, interest rates, GDP growth, market trends |
| Tax Awareness | Country-specific tax rules from India and G7 countries, i.e. USA, UK, Canada, Germany, France, Italy, Japan |
| Strategy Generation | Asset allocation, recommended instruments, monthly savings plan |

---

## How It Works: The Agentic Framework

### Agent Flow

Each agent uses natural language reasoning and external tools to build the final strategy.

### Agents

| Agent | Role |
|-------|------|
| **Input Analyzer** | Parses free-form input into structured profile |
| **Demographic Profiler** | Maps life stage, liquidity needs, planning horizon |
| **Net Worth Checker** | Identifies existing investments and assets |
| **Financial Literacy Detector** | Determines complexity level of advice |
| **Economic Analyst** | Gathers inflation, interest rate, GDP, and market trend |
| **Strategy Advisor** | Generates final investment plan |

---

## Technical Architecture

### Core Components

| Component | Purpose |
|----------|----------|
| LlamaIndex | Manages agent orchestration and reasoning flow |
| meta-llama/Meta-Llama-3.1-70B-Instruct | Generates human-readable investment strategy |
| World Bank API | Provides inflation and GDP data |
| Yahoo Finance | Detects market trend (bullish/bearish) |
| Hardcoded Interest Rates | For major countries (USA, India, UK, etc.) |
| Country Tax DB | Applies local tax logic to optimize portfolio |
| Modal Labs | Hosts backend as ASGI endpoint |
| Gradio | Frontend interface on Hugging Face Spaces |

---

## Features

| Feature | Status |
|--------|--------|
| βœ… Multi-Agent Workflow | LlamaIndex-based |
| βœ… Country Support | India, USA, UK, Canada, Germany, France, Italy, Japan |
| βœ… Economic Indicators | Inflation, Interest Rate, GDP Growth, Market Trend |
| βœ… Tax-Aware Advice | Yes – country-specific |
| βœ… Risk Tolerance Mapping | Conservative / Moderate / Aggressive |
| βœ… Markdown Strategy Output | Clean, formatted response |
---

## πŸ“Ή Video Walkthrough

🎬 [https://youtu.be/5UKDNWHW90A]

---
- Credits
- Built with ❀️ by [Devavrat Samak]
- For Hugging Face Gradio Hackathon 2025 – Track 3: Agentic Demo Showcase
 
- Model: meta-llama/Meta-Llama-3.1-70B-Instruct-fast (Nebius AI)
- Backend: Modal Labs
- Frontend: Hugging Face Gradio

Thank You!
If you're reading this β€” thank you for checking out our project. We hope you found it insightful and well-built.