How koraysrn/multiagent-portfolio-intelligence-assistant works
Portfolio Intelligence Assistant lets investors upload a portfolio, receive deterministic financial analysis, and explore results in a dashboard or chat. The documented analysis pipeline routes requests through planning, financial execution, quality checks, and decision-making; the dashboard also computes portfolio analytics directly. Major capabilities include live market/news data, hybrid RAG, onboarding, and PDF/Excel reports. Relationships for unsampled routes and pipeline internals are shown only where the README documents them; some subsystem links remain unverified because their source was not excerpted.
Main entry points: execution_layer_node.py Engine execution · dashboard_endpoint.py Dashboard analysis · workflow_graph.py LangGraph workflow · api.ts Frontend API client
Components 34
Investor experience
- Portfolio dashboard
frontend/src/app/dashboard/page.tsx - Portfolio upload
frontend/src/components/PortfolioUpload.tsx - Analysis chat
frontend/src/components/ChatSection.tsx - Analysis views
frontend/src/components/AutoDashboard.tsx - Frontend API client
frontend/src/services/api.ts
API and workflow
- FastAPI application
backend/app/main.py - API routes
backend/app/api/endpoints.py - Portfolio upload route
backend/app/api/routers/upload.py - Chat route
backend/app/api/routers/chat.py - Dashboard analysis
backend/app/api/dashboard_endpoint.py - Investor onboarding
backend/app/api/onboarding.py - LangGraph workflow
backend/app/graph/workflow_graph.py - Intent controller
backend/app/graph/nodes/controller_node.py - Dynamic router
backend/app/graph/routers/dynamic_router.py - Analysis planning
backend/app/graph/nodes/planning_node.py - Engine execution
backend/app/graph/nodes/execution_layer_node.py - Quality checks
backend/app/graph/nodes/quality_nodes.py - Analysis decisions
backend/app/graph/nodes/decision_nodes.py
Financial analysis
- Risk analytics
backend/app/engines/risk_engine.py - Technical analysis
backend/app/engines/technical_engine.py - Fundamental analysis
backend/app/engines/fundamental_engine.py - Monte Carlo
backend/app/engines/monte_carlo_engine.py - Portfolio optimization
backend/app/engines/optimization_engine.py - Investment thesis
backend/app/engines/investment_thesis_engine.py - Other financial engines
backend/app/engines
Knowledge and output
- Portfolio parser
backend/app/services/parser.py - Live market data
backend/app/services/data_fetcher.py - News intelligence
backend/app/engines/news_intelligence.py - Hybrid portfolio RAG
backend/app/services/vector_store.py - LLM provider factory
backend/app/config/llm.py - PDF and Excel reports
backend/app/services/report_generator.py
Other components
- Investor
- Market and news providers
- LLM services
Connections 48
- Investor → Portfolio dashboard: uses
- Portfolio dashboard → Portfolio upload: renders
frontend/src/app/dashboard/page.tsx - Portfolio dashboard → Analysis chat: renders
frontend/src/app/dashboard/page.tsx - Portfolio dashboard → Analysis views: renders
frontend/src/app/dashboard/page.tsx - Portfolio upload → Frontend API client: uploads through
frontend/src/components/PortfolioUpload.tsx - Analysis chat → Frontend API client: sends messages through
frontend/src/components/ChatSection.tsx - Frontend API client → Portfolio upload route: posts uploads
frontend/src/services/api.ts - Frontend API client → Chat route: posts chat
frontend/src/services/api.ts - Frontend API client → Dashboard analysis: requests dashboard
- FastAPI application → API routes: registers
backend/app/main.py - FastAPI application → Dashboard analysis: registers
backend/app/main.py - FastAPI application → Investor onboarding: registers
backend/app/main.py - API routes → Portfolio upload route: includes
backend/app/api/endpoints.py - API routes → Chat route: includes
backend/app/api/endpoints.py - Portfolio upload route → Portfolio parser: parses portfolio
- Chat route → LangGraph workflow: runs analysis
backend/app/api/routers/chat.py - Dashboard analysis → Portfolio parser: uses parsed portfolio
backend/app/api/dashboard_endpoint.py - Dashboard analysis → Risk analytics: computes risk
backend/app/api/dashboard_endpoint.py - LangGraph workflow → Intent controller: starts at
- LangGraph workflow → Dynamic router: routes stages
- LangGraph workflow → Analysis planning: plans analysis
- LangGraph workflow → Engine execution: runs engines
- LangGraph workflow → Quality checks: checks results
- LangGraph workflow → Analysis decisions: decides outcome
- Intent controller → Dynamic router: sets route plan
- Engine execution → Risk analytics: runs
- Engine execution → Technical analysis: runs
- Engine execution → Fundamental analysis: runs
- Engine execution → Monte Carlo: runs
- Engine execution → Portfolio optimization: runs
- Engine execution → Other financial engines: runs
- Dashboard analysis → Fundamental analysis: uses
backend/app/api/dashboard_endpoint.py - Dashboard analysis → Technical analysis: uses
backend/app/api/dashboard_endpoint.py - Dashboard analysis → Monte Carlo: uses
backend/app/api/dashboard_endpoint.py - Dashboard analysis → News intelligence: uses
backend/app/api/dashboard_endpoint.py - Dashboard analysis → Live market data: fetches data
backend/app/api/dashboard_endpoint.py - Engine execution → Live market data: fetches live data
- Engine execution → News intelligence: analyzes news
- Engine execution → Hybrid portfolio RAG: retrieves evidence
- Engine execution → LLM provider factory: requests interpretation
- Investment thesis → Fundamental analysis: uses inputs
backend/app/engines/investment_thesis_engine.py - Investment thesis → Technical analysis: uses inputs
backend/app/engines/investment_thesis_engine.py - Investment thesis → News intelligence: uses inputs
backend/app/engines/investment_thesis_engine.py - Investment thesis → Monte Carlo: uses inputs
backend/app/engines/investment_thesis_engine.py - Live market data → Market and news providers: queries prices
- News intelligence → Market and news providers: searches news
- LLM provider factory → LLM services: selects provider
backend/app/config/llm.py - Investor onboarding → PDF and Excel reports: generates reports
backend/app/api/onboarding.py