Local development
backend/.env:
| Endpoint | Purpose |
|---|---|
GET /health | Health check |
POST /ai/ask | AI advisor (SSE streaming) |
GET /market/price | Live stock/crypto prices |
POST /rag/ingest?user_id=... | Manually trigger RAG ingestion |
GET /transactions/ | Transaction CRUD |
GET /holdings/ | Holdings CRUD |
GET /accounts/ | Accounts CRUD |
RAG ingestion
The backend runs APScheduler cron jobs to embed your financial data for the AI memory:| Schedule | What runs |
|---|---|
| Daily at 2 AM | Yesterday’s spending summary |
| Sunday at 3 AM | Weekly pattern summary |
| 1st of month at 4 AM | Monthly review |
The embedding server (Docker) must be running for RAG ingestion to work. See Docker setup.