How harishkulkarni10/stock-intelligence-platform works
Stock Intelligence Platform is an equity-research desk: a user submits a ticker, receives a code-generated forecast, specialist interpretations, and a synthesized research brief. Its documented analyze path runs Performance, Market, Financial, Risk, then Report; the browser also offers product-help chat and session history. The repository combines a FastAPI service, web and Streamlit clients, a model-training/data path, market-data retrieval, and optional Redis caching. Several backend and agent implementations were not excerpted, so those connections reflect README documentation rather than inspected call sites.
Main entry points: graph.py Agent orchestration · api.py Analyze API · tools.py Research tools · performance_guardrails.py Performance analyst
Components 32
Research desk
- Web desk
frontend/web/app.js - Streamlit desk
frontend/app.py - Analyze API
backend/api.py - API schemas
backend/schemas.py
Forecast and data
- Forecast inference
src/pipelines/inference_pipeline.py - Forecast model
src/model/definition.py - Market ingestion
src/data/ingestion.py - Sequence preparation
src/data/preparation.py - Feature pipeline
src/pipelines/data_pipeline.py - Feature store
feature_store/features.py
Research agents
- Performance analyst
src/agents/performance_guardrails.py - Market expert
src/agents/news_guardrails.py - Financial analyst
src/agents/financial_guardrails.py - Risk analyst
src/agents/risk_guardrails.py - Research brief
src/agents/report_guardrails.py - Product guide
src/agents/help_chat.py - Agent orchestration
src/agents/graph.py - Research tools
src/agents/tools.py - LLM client
src/agents/llm.py
Market data
- Company profile
src/market/equity.py - Fundamentals snapshot
src/market/financials.py - Coded risk metrics
src/market/risk_metrics.py - News providers
State and observability
- Redis cache
- Analyze cache
src/memory/semantic_cache.py - Backend state
backend/state.py - Request context
logger/context.py - Structured logging
logger/logger.py - Agent evaluation
src/monitoring/agent_eval.py - Configuration
src/config.py
Other components
- Researcher
- LLM provider
Connections 39
- Researcher → Web desk: submits ticker
README.md - Web desk → Analyze API: requests analysis
frontend/web/app.js - Researcher → Streamlit desk: submits ticker
frontend/app.py - Streamlit desk → Analyze API: requests analysis
frontend/app.py - Analyze API → API schemas: validates request
- Analyze API → Forecast inference: requests forecast
README.md - Forecast inference → Forecast model: predicts prices
- Feature pipeline → Market ingestion: ingests prices
src/pipelines/data_pipeline.py - Feature pipeline → Sequence preparation: prepares sequences
src/pipelines/data_pipeline.py - Feature pipeline → Feature store: writes features
- Analyze API → Agent orchestration: runs analysis
README.md - Agent orchestration → Performance analyst: runs first
README.md - Agent orchestration → Market expert: runs second
README.md - Agent orchestration → Financial analyst: runs third
README.md - Agent orchestration → Risk analyst: runs fourth
README.md - Agent orchestration → Research brief: synthesizes notes
README.md - Agent orchestration → Research tools: uses research tools
- Performance analyst → LLM client: invokes model
src/agents/performance_guardrails.py - Research tools → Fundamentals snapshot: gets fundamentals
- Research tools → Company profile: gets profile
- Research tools → Coded risk metrics: gets risk metrics
- Research tools → News providers: fetches headlines
- Fundamentals snapshot → Market ingestion: uses market data
src/market/financials.py - Market expert → News providers: interprets headlines
README.md - Financial analyst → Fundamentals snapshot: interprets snapshot
README.md - Risk analyst → Coded risk metrics: uses coded metrics
README.md - Product guide → LLM client: answers questions
- Analyze API → Analyze cache: reads or writes
README.md - Analyze cache → Backend state: gets Redis client
src/memory/semantic_cache.py - Backend state → Redis cache: connects
- LLM client → LLM provider: invokes provider
src/agents/llm.py - LLM client → Structured logging: logs events
src/agents/llm.py - Performance analyst → Request context: sets ticker context
src/agents/performance_guardrails.py - Performance analyst → Structured logging: logs analysis
src/agents/performance_guardrails.py - Feature pipeline → Configuration: loads settings
src/pipelines/data_pipeline.py - Agent evaluation → Performance analyst: checks guardrails
src/monitoring/agent_eval.py - Agent evaluation → Market expert: checks guardrails
src/monitoring/agent_eval.py - Agent evaluation → Financial analyst: checks guardrails
src/monitoring/agent_eval.py - Agent evaluation → Research brief: checks guardrails
src/monitoring/agent_eval.py