A production-grade Agentic Deep Research Engine built with LangGraph that autonomously plans, researches, critiques, and generates citation-backed research reports using multiple collaborating AI agents.
The architecture below illustrates the complete end-to-end workflow of DeepSight Engine.
Real-time streaming of agent execution using Server-Sent Events (SSE).
Structured, citation-backed report generated after the multi-agent workflow completes.
- 🧠 Dynamic query decomposition using a dedicated Planner Agent
- 🔎 Autonomous multi-step web research with Researcher Agent
- 📝 Structured report generation with Reporter Agent
- 🧐 Quality evaluation through a Critic Agent
- ✍️ Automatic refinement using an Editor Agent
- 🌐 Multi-provider LLM Gateway (Llama, OpenAI & Claude)
- ⚡ Real-time progress streaming via Server-Sent Events (SSE)
- 🧠 Redis Semantic Caching for repeated and semantically similar queries
- 📄 PDF & DOCX report export
- 📊 Usage tracking and API key management
- 🚀 Production-ready FastAPI backend
Unlike a traditional chatbot that relies on a single LLM response, DeepSight Engine orchestrates multiple specialized AI agents.
- Understands the user's objective
- Breaks complex queries into dynamic research objectives
- Creates an execution strategy
- Executes one research objective at a time
- Performs iterative web research
- Collects and consolidates evidence
- Synthesizes collected information
- Generates a structured research report
- Evaluates report quality
- Detects missing information
- Decides whether refinement is required
- Improves weak sections
- Refines report quality
- Produces the final polished output
DeepSight includes an intelligent LLM Gateway supporting multiple providers.
Supported Providers
- Llama
- OpenAI
- Claude
Capabilities
- Smart model routing
- API key management
- Usage tracking
- Provider abstraction
- FastAPI
- Python
- LangGraph
- LangChain
- OpenAI
- Claude
- Llama
- Tavily Search API
- PostgreSQL
- Redis
- Server-Sent Events (SSE)
- Docker
- Render
User Query
│
▼
Planner Agent
│
▼
Dynamic Research Plan
│
▼
Researcher Agent
│
▼
Web Search (Tavily)
│
▼
Reporter Agent
│
▼
Critic Agent
│
▼
Editor Agent
│
▼
Citation-backed Research Report
Traditional AI chatbots usually perform a single LLM call.
DeepSight instead follows a production-style multi-agent workflow where specialized agents collaborate to:
- Plan
- Research
- Verify
- Critique
- Refine
This produces more comprehensive, citation-backed reports while keeping the architecture modular and extensible.
Clone the repository
git clone https://github.com/<your-username>/DeepSight-Engine.gitNavigate into the project
cd DeepSight-EngineInstall dependencies
pip install -r requirements.txtCreate a .env file
LLAMA_API_KEY=
OPENAI_API_KEY=
CLAUDE_API_KEY=
TAVILY_API_KEY=
DATABASE_URL=
REDIS_URL=Run the application
uvicorn app.main:app --reloadOpen
http://localhost:8000
Oishik Bandyopadhyay
AI Engineer • GenAI • Agentic AI • LangGraph • LLM Engineering
⭐ If you found this project interesting, consider giving it a star!



