How theallkeeeymist/multi-agent-researcher-report-generator works
This is a web-based research and report generator. A user signs in and submits a question through the Streamlit UI; the FastAPI endpoint queues a Celery task, which runs a LangGraph workflow: planning, parallel source gathering and synthesis, critique with bounded revision, then report writing. The UI polls for completion and displays the report. The excerpts show the task running the graph in-process and Redis-backed Celery dispatch, but do not show separate workers or the README-described PostgreSQL checkpointer, so those are not represented as implemented components.
Main entry points: build_graph.py Graph Builder · nodes.py Research Synthesizer · tools.py Search Tools · app.py Streamlit UI
Components 23
User Interface
- Streamlit UI
frontend/app.py - API Polling Client
frontend/api.py
API and Execution
- Google Sign-in
src/api/routes.py - FastAPI Routes
src/api/routes.py - Celery Task Queue
src/api/routes.py - Research Task
src/api/routes.py
Research Workflow
- Graph Builder
src/agent/build_graph.py - Research State
src/agent/state.py - Topic Planner
src/agent/nodes.py - Research Synthesizer
src/agent/nodes.py - Quality Critic
src/agent/nodes.py - Critic Routing
src/agent/edges.py - Report Writer
src/agent/nodes.py - Research Helpers
src/utils/helpers.py
Models and Sources
- Groq LLMs
src/models/llm_client.py - MCP Client
src/tools/mcp_client.py - MCP Tool Server
src/tools/server.py - Search Tools
src/tools/tools.py
Other components
- Researcher
- Redis Broker
- DuckDuckGo
- arXiv
- Semantic Scholar
Connections 38
- Researcher → Streamlit UI: submits question
frontend/app.py - Streamlit UI → Google Sign-in: starts sign-in
frontend/app.py - Google Sign-in → Streamlit UI: returns token
src/api/routes.py - Streamlit UI → API Polling Client: calls
frontend/app.py - API Polling Client → FastAPI Routes: submits and polls
frontend/api.py - FastAPI Routes → Celery Task Queue: dispatches task
src/api/routes.py - Celery Task Queue → Redis Broker: uses broker
src/api/routes.py - Celery Task Queue → Research Task: runs task
src/api/routes.py - Research Task → Graph Builder: invokes graph
src/api/routes.py - Research Task → MCP Client: starts and stops session
src/api/routes.py - Graph Builder → Topic Planner: routes workflow
src/agent/build_graph.py - Graph Builder → Research Synthesizer: routes workflow
src/agent/build_graph.py - Graph Builder → Quality Critic: routes workflow
src/agent/build_graph.py - Graph Builder → Report Writer: routes workflow
src/agent/build_graph.py - Graph Builder → Critic Routing: routes after critique
src/agent/build_graph.py - Topic Planner → Groq LLMs: generates topics
src/agent/nodes.py - Research Synthesizer → Research Helpers: researches topics
src/agent/nodes.py - Research Synthesizer → Groq LLMs: synthesizes findings
src/agent/nodes.py - Research Synthesizer → MCP Client: loads tools
src/agent/nodes.py - Research Helpers → Groq LLMs: requests tool calls
src/utils/helpers.py - Research Helpers → Search Tools: invokes selected tools
src/utils/helpers.py - Quality Critic → Groq LLMs: scores draft
src/agent/nodes.py - Quality Critic → Critic Routing: provides rating
src/agent/build_graph.py - Critic Routing → Research Synthesizer: retries if needed
src/agent/edges.py - Critic Routing → Report Writer: accepts draft
src/agent/edges.py - Report Writer → Groq LLMs: writes report
src/agent/nodes.py - MCP Client → MCP Tool Server: opens stdio session
src/tools/mcp_client.py - MCP Tool Server → Search Tools: loads server tools
src/tools/server.py - Search Tools → DuckDuckGo: searches web
src/tools/tools.py - Search Tools → arXiv: searches papers
src/tools/tools.py - Search Tools → Semantic Scholar: searches papers
src/tools/tools.py - FastAPI Routes → API Polling Client: returns task status and result
src/api/routes.py - API Polling Client → Streamlit UI: returns report
frontend/api.py - Graph Builder → Research State: uses workflow state
src/agent/build_graph.py - Topic Planner → Research State: reads and updates
src/agent/nodes.py - Research Synthesizer → Research State: reads and updates
src/agent/nodes.py - Quality Critic → Research State: reads and updates
src/agent/nodes.py - Report Writer → Research State: reads and updates
src/agent/nodes.py