How akshtx/finlearn works
FinLearn AI combines an Indian-equity research frontend with a backend valuation API. Users search for stocks and explore analysis, compare companies, screen candidates, manage portfolios, or inspect ML valuation. The main stock workflow gathers market data, enriches it with AI analysis, and presents a dashboard; the valuation workflow serves model predictions through API routes. The README documents the four-pillar scoring and classifier methodology. Some subsystems are represented from the tree and README because their implementation was not sampled; uncertain connections are omitted.
Main entry points: App.tsx Page router · geminiService.ts AI service · routes.py Valuation routes · ComparePage.tsx Stock comparison
Components 28
Research frontend
- Page router
src/App.tsx - Stock discovery
src/pages/HomePage.tsx - Stock dashboard
src/pages/StockDashboardPage.tsx - Stock comparison
src/pages/ComparePage.tsx - Stock screener
src/pages/ScreenerPage.tsx - Portfolio manager
src/pages/PortfolioPage.tsx - ML model explorer
src/pages/MLModelPage.tsx
Market research
- Stock search
src/components/search/SearchBar.tsx - Market data service
src/services/stockService.ts - Stock analysis state
src/hooks/useStockAnalysis.ts - Portfolio state
src/hooks/usePortfolio.ts
AI analysis
- Stock chatbot
src/components/chatbot/Chatbot.tsx - AI service
src/services/geminiService.ts - AI comparison engine
finlearn-backend/modules/llm/compare_engine.py - AI search copilot
finlearn-backend/modules/llm/search_copilot.py - AI portfolio analyst
finlearn-backend/modules/llm/portfolio_analyst.py - AI screener parser
finlearn-backend/modules/llm/screener_parser.py
ML valuation
- Valuation client
src/services/mlValuationService.ts - Valuation routes
finlearn-backend/modules/ml_valuation/routes.py - Model loader
finlearn-backend/modules/ml_valuation/model_loader.py - Feature pipeline
finlearn-backend/modules/ml_valuation/feature_pipeline.py - AV market client
finlearn-backend/modules/ml_valuation/av_client.py - India data pipeline
finlearn-backend/modules/ml_valuation/indian_market_pipeline.py - Training data pipeline
finlearn-backend/modules/ml_valuation/data_pipeline.py - Training workflow
finlearn-backend/modules/ml_valuation/train_pipeline.py
Backend runtime
- API server
finlearn-backend/server.py
Other components
- Investor
- Gemini API
Connections 31
- Investor → Page router: uses
src/App.tsx - Page router → Stock discovery: routes to
src/App.tsx - Page router → Stock dashboard: routes to
src/App.tsx - Page router → Stock comparison: routes to
src/App.tsx - Page router → Stock screener: routes to
src/App.tsx - Page router → Portfolio manager: routes to
src/App.tsx - Page router → ML model explorer: routes to
src/App.tsx - Stock discovery → Stock search: renders
src/pages/HomePage.tsx - Stock search → Market data service: searches
src/components/search/SearchBar.tsx - Stock dashboard → Stock analysis state: uses
src/pages/StockDashboardPage.tsx - Stock analysis state → Market data service: fetches data
src/hooks/useStockAnalysis.ts - Stock analysis state → AI service: requests analysis
src/hooks/useStockAnalysis.ts - Stock comparison → Stock search: renders
src/pages/ComparePage.tsx - Stock comparison → AI service: requests comparison
src/pages/ComparePage.tsx - Stock comparison → Valuation client: requests valuations
src/pages/ComparePage.tsx - Portfolio manager → Portfolio state: uses
src/pages/PortfolioPage.tsx - Portfolio manager → AI service: requests analysis
- Stock screener → AI service: requests analysis
src/pages/ScreenerPage.tsx - Stock chatbot → AI service: sends prompts
- AI service → Gemini API: generates content
src/services/geminiService.ts - Stock dashboard → Valuation client: requests valuation
src/pages/StockDashboardPage.tsx - Valuation client → Valuation routes: calls API
src/services/mlValuationService.ts - API server → Valuation routes: registers routes
finlearn-backend/server.py - Valuation routes → Model loader: loads classifier
finlearn-backend/modules/ml_valuation/routes.py - Valuation routes → Feature pipeline: prepares features
finlearn-backend/modules/ml_valuation/routes.py - Valuation routes → AV market client: fetches market data
finlearn-backend/modules/ml_valuation/routes.py - Training workflow → Training data pipeline: loads dataset
finlearn-backend/modules/ml_valuation/train_pipeline.py - Training data pipeline → Investor: uses Indian stock data
- AI comparison engine → Gemini API: uses model
- AI search copilot → Gemini API: uses model
- Portfolio state → Market data service: fetches prices
src/hooks/usePortfolio.ts