As asked
Design a multi-agent system where a user types a research question and gets back a comprehensive written report. The system should parallelize research across multiple sources and then synthesize the results. Walk me through the agent topology, data flow, and failure handling.
Sample answer outline
Strong answers describe a planner agent that decomposes the question into sub-queries, a set of parallel researcher agents each calling different search or database tools, a merging step that aggregates chunks and deduplicates, a writer agent that drafts the report, and an editor agent that fact-checks citations. Candidates should address fan-out rate limiting, partial failure handling, and how the final context is kept under the window limit.
Expect these follow-ups
- How do you make sure the writer agent does not hallucinate facts that were not in any researcher's output?
- How would you scale this to 1000 concurrent report requests?