Learn/Generative AI, RAG & Agents/MODULE 3: AGENTIC AI
Lesson 27 of 37 · 2 min read

3.6 Multi-Agent Systems

Some problems are big enough that a single agent isn't the best approach. Multi-agent systems use multiple specialized agents that collaborate.

Why Multiple Agents?

Several reasons:

  • Specialization: Different agents can have different tools, different system prompts, and different "personalities." A "research agent" might be tuned for careful, exhaustive search; a "summarizer agent" for crisp synthesis.
  • Parallelism: Several agents can work simultaneously on different sub-tasks.
  • Cleaner architecture: Like organizing a company into departments, separating responsibilities can make the overall system easier to design and debug.
  • Different models for different roles: A simple task can go to a small fast model; a hard reasoning task can go to a larger, slower one.

Common Multi-Agent Patterns

Orchestrator + Workers: A central "orchestrator" agent receives the user's task, breaks it into pieces, and assigns each piece to a specialist worker agent.

When workers report back, the orchestrator synthesizes a final result.

Pipeline (Hand-off): One agent does step 1 and hands the result to agent 2, which does step 2 and hands to agent 3, and so on.

Debate: Two or more agents argue different sides of a question; a third agent (or the system) judges or synthesizes.

This sometimes produces better answers than a single agent reasoning alone.

Society of Mind: Many agents with different roles (planner, critic, executor, researcher, writer) collaborate in a more free-form way, similar to a team meeting.

A Concrete Example: A Research Report Agent

Suppose you want an agent that produces detailed research reports.

A reasonable multi-agent design:

  • A Planner Agent receives the topic and outlines the report.
  • A Researcher Agent is invoked for each section, using web search and RAG over relevant sources, producing notes.
  • A Writer Agent takes the notes and drafts the section's prose.
  • A Critic Agent reads the draft and flags issues — gaps, weak arguments, factual claims to verify.
  • An Editor Agent revises based on the Critic's feedback.
  • A final Assembler Agent stitches sections together and produces the final report with citations.

Each of these is "just" an LLM with a specific system prompt and toolset, but together they produce something far better than asking a single agent to "write me a research report."

Keep going with a free account

A free account saves your progress across lessons and lets you pick up where you left off.