Portfolio Intelligence
Deterministic analytics, risk metrics, and report generation for comprehensive portfolio analysis and client communication.
Portfolio Intelligence
Scope — Quantitative portfolio analytics engine that computes risk-adjusted returns, concentration metrics, benchmark comparisons, and generates publication-ready reports for wealth managers and family offices.
Executive Summary
Portfolio Intelligence transforms extracted holdings data into actionable analytics. It combines deterministic financial calculations (performed in the Agentic Backend) with LLM-generated narratives (via the LLM Orchestrator) to produce comprehensive portfolio review reports, risk dashboards, and rebalancing recommendations.
The engine supports both real-time chat queries (e.g., “What’s my Sharpe ratio?”) and batch report generation (11-section PDF/PPTX portfolio review).
The Problem
Wealth managers need to answer sophisticated questions that generic portfolio tools cannot handle:
- “What is the risk-adjusted return of my AIF allocation versus the benchmark?”
- “How much overlap exists between my large-cap mutual funds and PMS strategies?”
- “Simulate the impact of moving 10% from equity to gold on portfolio volatility.”
Excel-based analysis is fragile, non-collaborative, and impossible to generate on-demand during client meetings.
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ Portfolio Intelligence │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────┐ ┌──────────────────┐ ┌────────────┐ │
│ │ Nexus │─────▶│ Agentic Backend │─────▶│ Sentinel │ │
│ │ Extraction │ │ Portfolio Engine│ │ Frontend │ │
│ └─────────────┘ │ │ │ (Charts) │ │
│ │ • PyPortfolioOpt │ └────────────┘ │
│ │ • yfinance │ ▲ │
│ │ • Risk Metrics │ │ │
│ └────────┬─────────┘ │ │
│ │ │ │
│ ▼ │ │
│ ┌──────────────────┐ │ │
│ │ LLM Orchestrator│─────────────┘ │
│ │ (Narrative Gen) │ │
│ └──────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
Calculation Modules
| Module | Library / Method | Output |
|---|---|---|
| Risk Metrics | empyrical / custom |
Sharpe, Sortino, VaR, CVaR, Max Drawdown |
| Optimization | PyPortfolioOpt |
Efficient frontier, min-volatility, max-Sharpe |
| Return Analysis | yfinance + XIRR |
Annualized, YTD, Q-o-Q, benchmark-relative |
| Overlap Matrix | Custom intersection | Fund-level and stock-level overlap scores |
| Scenario Engine | Monte Carlo | Projected returns under allocation shifts |
Portfolio Review Report (11 Sections)
- Executive Summary
- Asset Allocation Overview
- Fund Overlap Analysis
- Benchmark Comparison
- Risk Metrics & Ratios
- Diversification Score
- Sectoral Concentration
- Geographic Exposure
- Historical Performance
- Scenario Analysis
- Recommendations Narrative
Personas & Journeys
Relationship Manager
- Uploads client portfolio documents to Zen chat
- Requests: “Generate portfolio review report”
- System extracts holdings, fetches live NAVs, computes metrics
- Receives 11-section PDF with charts and AI commentary
- Reviews PII-masked summary before sharing with client
- Schedules follow-up meeting from embedded action card
Family Office CIO
- Runs quarterly book-wide analysis across 50+ entities
- Aggregates all CAS and AIF statements via batch pipeline
- Reviews concentration heatmap across the family
- Identifies overlap: 4 entities hold overlapping mid-cap exposure
- Runs scenario: “Reduce equity by 10%, increase gold and international”
- Receives impact analysis on volatility and expected return
Risk Officer
- Monitors VaR and CVaR across discretionary mandates
- Sets alert thresholds: Max 15% sector concentration, Max 20% unlisted
- Receives automated weekly risk dashboard
- Drills into flagged clients for detailed analysis
- Exports compliance-ready report for SEBI filing
Key Features
| Feature | Detail |
|---|---|
| Live Price Feeds | yfinance integration for end-of-day NAVs and stock prices |
| Deterministic Calculations | No LLM hallucination in numbers; all metrics computed with validated formulas |
| Benchmark Comparison | Nifty 50, Nifty Midcap 100, CRISIL Hybrid, custom benchmarks |
| Fund Overlap Matrix | Visual matrix showing duplicate stock exposure across funds |
| Efficient Frontier | Modern portfolio theory visualization with current portfolio position |
| Scenario Modeling | User-defined allocation shifts with projected risk/return |
| PII Masking | Client names and sensitive identifiers masked in shared reports |
| Export Formats | PDF, PPTX, Excel |
API Surface
| Method | Endpoint | Purpose |
|---|---|---|
POST |
/api/v1/orchestrator/invoke |
Portfolio review with intent portfolio_review |
POST |
/api/v1/agent/invoke |
Direct portfolio agent invocation |
GET |
/api/v1/dashboard |
Aggregated portfolio metrics |
POST |
/api/v1/chat/invoke |
Chat-based portfolio query |
Security, Compliance & Operations
- Deterministic Guarantees — All quantitative metrics use validated open-source libraries; no LLM involvement in calculation logic
- Data Freshness — Price feeds cached with 24h TTL; manual refresh available
- Benchmark Accuracy — Indices mapped via standard tickers (^NSEI, ^CRSLDX, etc.)
- Regulatory Alignment — SEBI IA risk disclosure norms, PMS performance reporting standards
- Audit — Every report generation logged with input holdings hash, model versions, and parameter set
Related Capabilities
- Asset Class Understanding — Structural decomposition feeding analytics
- Document Intelligence — Source data extraction
- Wealth Understanding — Natural language interface to analytics
- Digital Advisor — Chat-driven report requests