How wajih1234/ai-research-team works
AI Research Team accepts a topic in the React UI, streams agent progress from a FastAPI endpoint, and displays a cited Markdown report. The LangGraph workflow plans questions, researches each with web search, critiques findings, then writes the report. Gemini supports the agents; DuckDuckGo supplies search results. The excerpts show the graph’s sequence and agent calls, though the critic’s reviews are not passed into report generation. The README documents the UI-to-SSE connection and deployed capabilities; unsampled implementation details are not inferred.
Main entry points: graph.py LangGraph workflow · App.jsx Research UI · main.py FastAPI endpoints · researcher.py Researcher agent
Components 12
Research UI
- Research UI
frontend/src/App.jsx - Markdown report
frontend/src/App.jsx
API and Orchestration
- FastAPI endpoints
backend/main.py - LangGraph workflow
backend/graph.py
Research Agents
- Planner
backend/planner.py - Researcher agent
backend/researcher.py - Critic
backend/critic.py - Report writer
backend/writer.py
Search and Generation
- Search tool
backend/search_tool.py - DuckDuckGo
- Gemini API
Other components
- Researcher
Connections 17
- Researcher → Research UI: enters topic
README.md - Research UI → FastAPI endpoints: opens SSE stream
README.md - FastAPI endpoints → LangGraph workflow: invokes or streams
backend/main.py - LangGraph workflow → Planner: dispatches
backend/graph.py - LangGraph workflow → Researcher agent: dispatches
backend/graph.py - LangGraph workflow → Critic: dispatches
backend/graph.py - LangGraph workflow → Report writer: dispatches
backend/graph.py - Planner → Gemini API: generates questions
backend/planner.py - Researcher agent → Search tool: searches questions
backend/researcher.py - Search tool → DuckDuckGo: queries web
backend/search_tool.py - Researcher agent → Gemini API: drafts answers
backend/researcher.py - Critic → Gemini API: reviews findings
backend/critic.py - Report writer → Gemini API: writes report
backend/writer.py - Report writer → Markdown report: produces Markdown
backend/writer.py - LangGraph workflow → FastAPI endpoints: returns updates
backend/main.py - FastAPI endpoints → Research UI: streams agent events
README.md - Research UI → Markdown report: renders report
frontend/src/App.jsx