8 specialized AI agents orchestrated via LangGraph. Works with Groq (free), Ollama (local), or Claude Sonnet. Institutional-grade equity research for NSE/BSE stocks โ run locally with your own API key.
Natural language queries โ the orchestrator routes to the right agents automatically
Each agent is a LangChain tool-calling agent with a focused system prompt and dedicated tools
LangGraph StateGraph with supervisor routing and parallel agent execution
User Query (natural language)
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโ
โ Supervisor Node โ โโโ keyword routing + ticker extraction
โ (LangGraph) โ
โโโโโโโโโโโโฌโโโโโโโโโโโโ
โ parallel dispatch to relevant agents
โโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ โผ โผ โผ โผ โผ โผ โผ
[Screener] [DCF] [Risk] [Earnings] [Portf.] [Tech.] [Div.] [Comp.]
โ โ โ โ โ โ โ โ
โโโโโโโโโโดโโโโโโโโโดโโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโโดโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโ
โ Synthesis Node โ โโโ progressive summarization
โ (Claude Sonnet) โ context positioning
โโโโโโโโโโฌโโโโโโโโโโ
โ
โผ
Final Investment Report
(BUY/HOLD/SELL + rationale)
Applied concepts from the 5 exam domains
You need an Anthropic API key. No deployment costs โ runs entirely on your machine.
git clone https://github.com/PritamSonawane7798/india-stock-ai.git cd india-stock-ai
python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install -r requirements.txt
cp .env.example .env # Edit .env and set: ANTHROPIC_API_KEY=sk-ant-...
Get your API key at console.anthropic.com. The app uses Claude Sonnet โ check current pricing there.
streamlit run src/app.py
Opens at http://localhost:8501
python examples/demo_analysis.py