> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vantagewealth.app/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Financial Advisor

> Ask Vantage natural-language questions about your money.

## What you can ask

The AI advisor connects to your real financial data. Everything it tells you is grounded in actual numbers from your accounts, transactions, and portfolio.

### Spending & budgets

* "How much did I spend on food last month?"
* "Compare my spending this month vs last month"
* "Which merchant do I spend the most at?"
* "Am I on track with my entertainment budget?"
* "Show me all transactions at Grab in March"
* "What are my recurring subscriptions?"

### Portfolio & investments

* "What's my portfolio worth right now?"
* "How is AAPL performing vs my cost basis?"
* "What's my allocation across stocks vs crypto?"
* "Which holdings have the best return?"
* "Am I too concentrated in tech?"

### Debt & credit cards

* "What's outstanding on my HSBC card?"
* "When is my UOB card due?"
* "If I pay \$500 extra per month, when will I clear my loan?"
* "What's my total credit utilisation?"

### Net worth & wealth

* "What's my net worth today?"
* "What's my savings rate this month?"
* "Break down my assets vs liabilities"
* "Score my financial health"

### Market prices

* "What's the current price of AAPL?"
* "How has Bitcoin performed over the last month?"
* "What's the SGD to INR exchange rate?"
* "Compare MSFT vs GOOGL performance this year"

***

## How it works

```mermaid theme={null}
flowchart TD
    A([Your question]) --> B{Two-tier router}
    B -->|regex match ~70%| C[Domain label\ncashflow · investment · debt · wealth · market]
    B -->|ambiguous| D[Claude Haiku\none-shot classifier]
    D --> C
    C --> E[Specialist\nClaude Sonnet]
    E --> F{Tool-use loop\nasyncio.gather}
    F --> G[Supabase tools\nyour real data]
    F --> H[Market tools\nyfinance · CoinGecko]
    F --> I[RAG memory\npgvector context]
    G --> E
    H --> E
    I --> E
    E -->|end_turn| J([Streaming response\nreal-time tokens])

    style A fill:#10B981,color:#fff
    style J fill:#10B981,color:#fff
    style E fill:#1C1E26,color:#F0F2F5
    style F fill:#1C1E26,color:#F0F2F5
```

The loading indicator in the app shows exactly what's happening: "Analyzing spending by category", "Fetching live price", "Computing net worth".

***

## Specialist domains

| Domain         | Handles                                                           |
| -------------- | ----------------------------------------------------------------- |
| **Cash Flow**  | Transactions, budgets, income, merchants, categories              |
| **Investment** | Holdings, market prices, historical charts, P\&L, allocation      |
| **Debt**       | Credit cards, loans, payoff simulation, social debts              |
| **Wealth**     | Net worth, savings rate, financial health score, account balances |
| **Market**     | Live prices, forex, asset comparison                              |

***

## AI memory (RAG)

The advisor remembers your financial patterns through an embedding-based memory system. Daily summaries of your spending, weekly patterns, and conversation history are embedded and stored in pgvector. When you ask a question, relevant context is retrieved and included in the prompt.

This means the AI can answer questions like "Is my food spending going up or down?" by referencing patterns across multiple months, not just the raw transaction list.

See [RAG Pipeline](/ai/rag-pipeline) for technical details.
