This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| how_to_build_a_research_agent [2026/03/25 15:36] – Create comprehensive guide to building research agents agent | how_to_build_a_research_agent [2026/03/30 22:17] (current) – Restructure: footnotes as references agent | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== How to Build a Research Agent ====== | ====== How to Build a Research Agent ====== | ||
| - | A research agent is an AI system that autonomously searches the web, evaluates sources, chains multiple queries together (multi-hop retrieval), synthesizes findings, and produces cited reports. Systems like Perplexity, OpenAI Deep Research, and Google Gemini Deep Research demonstrate the power of this pattern. This guide covers the architecture and working code for building your own. | + | A research agent is an AI system that autonomously searches the web, evaluates sources, chains multiple queries together (multi-hop retrieval), synthesizes findings, and produces cited reports. Systems like Perplexity, OpenAI Deep Research, and Google Gemini Deep Research demonstrate the power of this pattern. This guide covers the architecture and working code for building your own.(([[https:// |
| ===== Architecture Overview ===== | ===== Architecture Overview ===== | ||
| Line 29: | Line 29: | ||
| ==== 1. Query Decomposition ==== | ==== 1. Query Decomposition ==== | ||
| - | Complex questions are broken into atomic sub-questions. "What is the best framework for building multi-agent systems in 2026?" becomes: | + | Complex questions are broken into atomic sub-questions. "What is the best framework for building multi-agent systems in 2026?" becomes:(([[https:// |
| * What multi-agent frameworks exist as of 2026? | * What multi-agent frameworks exist as of 2026? | ||
| * What are the benchmarks for each? | * What are the benchmarks for each? | ||
| Line 48: | Line 48: | ||
| ==== 4. Multi-Hop Retrieval ==== | ==== 4. Multi-Hop Retrieval ==== | ||
| - | The PRISM pattern (Precision-Recall Iterative Selection Mechanism) uses three specialized sub-agents: | + | The PRISM pattern (Precision-Recall Iterative Selection Mechanism) uses three specialized sub-agents:(([[https:// |
| * **Question Analyzer**: Decomposes the query into sub-questions | * **Question Analyzer**: Decomposes the query into sub-questions | ||
| * **Selector**: | * **Selector**: | ||
| Line 334: | Line 334: | ||
| * **Rate limit awareness**: | * **Rate limit awareness**: | ||
| * **Token budget**: Track total tokens consumed and stop gracefully when approaching limits | * **Token budget**: Track total tokens consumed and stop gracefully when approaching limits | ||
| - | |||
| - | ===== References ===== | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| ===== See Also ===== | ===== See Also ===== | ||
| Line 349: | Line 341: | ||
| * [[how_to_build_a_data_analysis_agent|How to Build a Data Analysis Agent]] | * [[how_to_build_a_data_analysis_agent|How to Build a Data Analysis Agent]] | ||
| + | ===== References ===== | ||