How sagartrimukhe/ai-investment-research-assistant works
This is a Streamlit equity-research assistant: analysts upload or select filings, index them, run a ticker research workflow, and review a synthesized thesis before sign-off. The workflow routes inputs to filing-based fundamentals and trend analysis, then performs peer comparison, thesis synthesis, and a human approval gate. Separate UI capabilities show market data and export reports. Edges follow excerpts, SOURCE INDEX references, or README statements; several agent internals and export details were not sampled, so their links are limited to documented or indexed wiring.
Main entry points: workflow_service.py Workflow orchestration · main.py Streamlit research UI · document_ingestion.py Document ingestion · market_research.py Fundamental research
Components 21
Analyst interface
- Streamlit research UI
app/main.py
Filing ingestion
- Document ingestion
app/services/document_ingestion.py - Text splitting
app/utils/text_splitter.py - NASDAQ universe
app/services/nasdaq_universe.py
Research workflow
- Workflow orchestration
app/services/workflow_service.py - Shared agent state
app/core/state.py - Input router
app/agents/router.py - Fundamental research
app/agents/market_research.py - Trend analysis
app/agents/trend_analysis.py - Peer comparison
app/agents/comparative_analysis.py - Thesis synthesis
app/agents/summary_agent.py - Analyst approval gate
app/agents/hitl.py
Research services
- Financial research tools
app/tools/financial_tools.py - Filing retrieval
app/services/retrieval_service.py - Report export
app/services/export_service.py
Data integrations
- Gemini language model
- Filing vector store
app/integrations/vector_store.py - Market data
app/integrations/market_data.py - S3 archive
app/integrations/s3_client.py
Other components
- Analyst
- yfinance
Connections 29
- Analyst → Streamlit research UI: uses
README.md - Streamlit research UI → Document ingestion: indexes filings
app/main.py - Document ingestion → Text splitting: splits text
app/services/document_ingestion.py - Document ingestion → Filing vector store: writes chunks
app/services/document_ingestion.py - Document ingestion → NASDAQ universe: detects ticker
app/services/document_ingestion.py - Streamlit research UI → Workflow orchestration: runs research
app/main.py - Workflow orchestration → Shared agent state: uses state
app/services/workflow_service.py - Workflow orchestration → Input router: dispatches
app/services/workflow_service.py - Workflow orchestration → Fundamental research: dispatches
app/services/workflow_service.py - Workflow orchestration → Trend analysis: dispatches
app/services/workflow_service.py - Workflow orchestration → Peer comparison: dispatches
app/services/workflow_service.py - Workflow orchestration → Thesis synthesis: dispatches
app/services/workflow_service.py - Workflow orchestration → Analyst approval gate: dispatches
app/services/workflow_service.py - Workflow orchestration → Fundamental research: routes
app/services/workflow_service.py - Workflow orchestration → Trend analysis: routes
app/services/workflow_service.py - Workflow orchestration → Peer comparison: routes
app/services/workflow_service.py - Workflow orchestration → Thesis synthesis: routes
app/services/workflow_service.py - Workflow orchestration → Analyst approval gate: routes
app/services/workflow_service.py - Fundamental research → Filing vector store: searches filings
app/agents/market_research.py - Fundamental research → Gemini language model: extracts metrics
app/agents/market_research.py - Peer comparison → Financial research tools: uses tools
app/agents/comparative_analysis.py - Financial research tools → Market data: fetches metrics
app/tools/financial_tools.py - Financial research tools → Filing vector store: searches filings
app/tools/financial_tools.py - Market data → yfinance: fetches prices
app/integrations/market_data.py - Streamlit research UI → Market data: shows prices
app/main.py - Streamlit research UI → S3 archive: archives uploads
app/main.py - Streamlit research UI → Report export: exports reports
app/main.py - Filing retrieval → Filing vector store: searches chunks
app/services/retrieval_service.py - Analyst → Streamlit research UI: reviews thesis
README.md