An industry-aligned LLM-powered multi-agent system that generates structured market intelligence reports by combining:
- Real-time news
- Financial data
- Retrieval-Augmented Knowledge (RAG)
- LLM-based reasoning
This project demonstrates a production-style AI system design using:
- Multi-agent architecture
- LangGraph orchestration
- Tool-augmented LLM reasoning
The system takes a company name as input and generates a market insight report.
User → FastAPI → LangGraph → Agents → LLM → Response
- Coordinator agent decides tool usage
- News agent fetches latest news
- Financial agent retrieves financial data
- Vector retrieval (FAISS) fetches relevant knowledge
- Analysis agent performs reasoning
- Strategy agent generates final report
- FastAPI
- LangGraph
- Groq (LLM)
- HuggingFace Embeddings
- FAISS (Vector DB)
- Docker
app/
├── agents/
├── api/
├── config/
├── prompts/
├── schemas/
├── services/
├── tools/
├── workflows/
└── main.py
data/
docker/
system_design.md
- Multi-agent orchestration using LangGraph
- Tool-based reasoning (news + financial data)
- Retrieval-Augmented Generation (RAG)
- Modular and scalable architecture
- Prompt-driven LLM workflows
For detailed architecture, data flow, and design decisions:
➡️ Refer to: system_design.md
git clone
cd market-intelligence-agent
python -m venv venv
Windows:
venv\Scripts\activate
Linux/Mac:
source venv/bin/activate
pip install -r requirements.txt
Create a .env file:
GROQ_API_KEY=your_api_key
MODEL_NAME=llama3-8b-8192
uvicorn app.main:app --reload
Open:
http://127.0.0.1:8000/docs
{ "company": "Apple", "question": "Analyze market outlook" }
{ "analysis": "...", "final_report": { "market_outlook": "...", "opportunities": "...", "risks": "..." } }
- Depends on external APIs for news and financial data
- LLM responses may vary based on prompts and model behavior
- Not optimized for large-scale production deployment
- Multi-agent AI system design
- LLM orchestration using LangGraph
- Practical application of RAG
- Clean and modular backend architecture
Nithin Gowda P
Aspiring AI/ML Engineer