An AI-powered multi-agent research system that automatically searches the web, extracts relevant information, generates a structured research report, and uses a dedicated critic agent to review the generated output.
The project demonstrates how specialized AI agents can work together as an orchestrated pipeline instead of relying on a single LLM prompt.
Live Application: https://debojeet-multi-agent.streamlit.app
Enter a research topic and let the multi-agent pipeline search, analyze, write, and review the report automatically.
- π Search Agent β Searches the web for relevant information and sources.
- π Reader Agent β Extracts and processes content from selected web pages.
- βοΈ Writer Agent β Generates a structured research report from the collected information.
- π§ Critic Agent β Reviews the generated report and provides feedback.
- π Multi-Agent Pipeline β Coordinates multiple specialized agents through a shared workflow.
- π Source-Based Reports β Generated reports include references to the sources used during research.
- π₯οΈ Streamlit UI β Interactive interface for entering research briefs and reviewing results.
- π Pipeline Metrics β Displays agent count, search notes, scraped content, and report statistics.
- π Report Review β Allows users to inspect the generated report and critic feedback.
Research Brief
β
βΌ
ββββββββββββββββ
β Search Agent β
ββββββββ¬ββββββββ
β
βΌ
ββββββββββββββββ
β Reader Agent β
ββββββββ¬ββββββββ
β
βΌ
ββββββββββββββββ
β Writer Agent β
ββββββββ¬ββββββββ
β
βΌ
ββββββββββββββββ
β Critic Agent β
ββββββββ¬ββββββββ
β
βΌ
Final Research Report
β
βΌ
Streamlit Interface
- The user provides a research brief.
- The Search Agent discovers relevant web sources.
- The Reader Agent extracts useful information from the selected pages.
- The Writer Agent synthesizes the collected information into a structured report.
- The Critic Agent evaluates the generated report.
- The final report, sources, and critic feedback are presented through the Streamlit interface.
| Technology | Purpose |
|---|---|
| Python | Core application development |
| LangChain | LLM orchestration and agent/tool integration |
| LLMs | Research, synthesis, and evaluation |
| Web Search | Finding relevant research sources |
| Web Scraping | Extracting webpage content |
| Streamlit | Interactive web interface |
| python-dotenv | Environment variable management |
multi_agent_system/
β
βββ app.py # Streamlit application
βββ pipeline.py # Multi-agent research pipeline
βββ agents.py # Agent definitions and configurations
βββ tools.py # Search/scraping and custom tools
β
βββ .streamlit/
β βββ config.toml # Streamlit configuration
β
βββ requirements.txt # Python dependencies
βββ pyproject.toml # Project configuration
βββ pyrightconfig.json # Python type-checking configuration
βββ .gitignore
βββ README.md
git clone https://github.com/YOUR_USERNAME/multi_agent_system.git
cd multi_agent_systempython -m venv venvWindows:
.\venv\Scripts\activatemacOS/Linux:
source venv/bin/activatepip install -r requirements.txtCreate a .env file in the project root and add the API keys required by the application.
YOUR_API_KEY=your_api_keyNever commit
.envor API keys to GitHub.
streamlit run app.pyThe application will be available locally at:
http://localhost:8501
For local development, API credentials are loaded through environment variables.
For deployment, configure the required secrets through the hosting platform's secret management system.
The repository intentionally does not contain .env or API credentials.
The application provides a research dashboard where users can:
- Submit a research topic
- Track pipeline progress
- View search results
- Inspect scraped content
- Read the generated report
- Review critic feedback
- Inspect cited sources
Impact of AI on the Job Market
Search
β
Read
β
Write
β
Critique
The system generates a structured research report containing:
- Introduction
- Key findings
- Analysis
- Conclusion
- Sources
- Critic review
This project helped me understand and implement:
- Multi-agent AI architecture
- LangChain agent and tool orchestration
- LLM-based research workflows
- Web search and content extraction
- Prompt-driven report generation
- AI-generated content evaluation
- Shared state between pipeline stages
- Streamlit application development
- Environment and secret management
- Deploying an AI application
- Add persistent research history
- Add PDF report export
- Introduce parallel research agents
- Add source credibility scoring
- Add RAG with a vector database
- Add human-in-the-loop approval before report generation
- Improve critic-based iterative refinement
- Add authentication and user-specific research history
Debojeet Mitra
Computer Science (AI & ML) | Backend & Generative AI Developer
- GitHub: https://github.com/debojeetmitra
- Portfolio: https://debojeet-portfolio.vercel.app/
Feel free to explore the code, try the live demo, or give the repository a star.


