09. Advanced Concepts
Autonomous Research Agents
Autonomous research agents turn a brief into a budgeted search–read–synthesize loop: plan queries, fetch from allowlisted web/KB sources, grade trust and relevance, take cited notes, hop when gaps remain, then deliver a sourced brief. They combine Agentic RAG, long-horizon planning, and reflection — with hard caps so “autonomous” never means unbounded browsing.
What you will learn
- Describe the research agent pipeline end to end
- Design a budgeted query-fetch-grade-note hop loop
- Apply allowlists, citations, and HITL publish gates
- Evaluate research quality beyond fluent prose
- Answer interview questions with short, solid answers
Definition
An autonomous research agent is a multi-step system that investigates a question or topic with minimal hand-holding: it plans searches, retrieves documents, extracts evidence, compares sources, and produces a structured deliverable with citations. Autonomy is bounded by tools, allowlists, budgets, and stop rules — not open-ended internet freedom.
Unlike a single RAG FAQ answer, research agents often run longer horizons, maintain note memory, and reflect when evidence conflicts or is thin.
Introduction
This lesson (#5 in Advanced Concepts) follows Self-Reflection. Critique loops grade sources and drafts; research agents apply that at corpus and web scale.
Next: Computer-Use and Browser Automation Agents — when reading needs real UI control.
Why research agents
- Competitive intel, literature scans, due diligence need many sources
- Humans bottleneck on tab explosion and note chaos
- Citations make claims auditable for enterprises
- Private KB + public web often must be combined
- Still require human review before high-stakes publish
End-to-end pipeline
- Brief - question, scope, audience, must-cite rules
- Plan - sub-questions and search strategy
- Search - KB, web, APIs (allowlisted tools)
- Read/extract - snippets with source ids
- Synthesize - outline, compare, flag conflicts
- Cite + deliver - brief, table, or memo with links/doc ids
Iterative research loop
Treat each hop like Agentic RAG with stricter provenance.
- Query - rewrite from gaps in the outline
- Fetch - search/browse tools only on allowlists
- Grade - relevance, recency, authority, conflict
- Note - structured cards: claim, quote, source, date
- Hop - only if outline gaps and budget remain
- Reflect - draft critique before final delivery
Roles and topology
- Planner - decomposes the brief into sub-questions
- Searcher - runs queries and returns candidates
- Reader - extracts evidence from pages/PDFs
- Librarian - dedupes sources and manages note memory
- Writer/critic - drafts and grades the deliverable
- Crew/graph patterns from Module 07 fit naturally
Safety and controls
Research without controls becomes scrape-and-hallucinate.
- Domain/tool allowlists — block SSRF and shady hosts
- Max pages, hops, tokens, and wall-clock
- Every nontrivial claim maps to a source id/URL
- Separate facts vs speculation in the output schema
- HITL before external publish or customer-facing memos
- Respect robots/ToS and licensed content rules
Evaluation
- Citation coverage: claims with valid sources
- Source quality: diversity, recency, authority
- Faithfulness: no unsupported invented stats
- Coverage: sub-questions in the brief answered
- Efficiency: quality per hop/page under budget
- Compare against a human analyst sample set
Map to earlier modules
- Agentic RAG = retrieval engine inside the loop
- Long-horizon planning = multi-session research jobs
- Reflection = grade sources and draft quality
- Memory = note cards and outlines across hops
- Next: browser/computer-use when APIs are not enough
Failure modes
- Fluent briefs with fake or mismatched citations
- Unbounded crawling → cost and legal risk
- Single-source bias with no conflicting views
- Treating SEO blogs as peer-reviewed truth
- Skipping HITL on regulated or PR-sensitive topics
Program / implementation notes
Implement tools: search, fetch_url (allowlisted), upsert_note, render_brief. Persist notes in SQL; run a max-hop loop with a critic before delivery. Trace every fetch and citation.
- Prefer API/search tools before full browser automation
- Next: Computer-Use and Browser Automation Agents
Advantages and limitations
- Advantage: scales literature and web triage
- Advantage: structured notes + citations improve auditability
- Advantage: composes cleanly with crews/graphs
- Limitation: open web is noisy and adversarial
- Limitation: autonomy still needs human judgment for stakes
- Limitation: browser-heavy research is slower and more fragile
Key points
- Research agents: brief → search → read → synthesize → cite → deliver.
- Use a budgeted hop loop with graded sources and note cards.
- Allowlists, citation maps, and HITL publish gates are mandatory.
- Combine private KB and web through routers when needed.
- Eval claims, sources, and faithfulness — not writing style alone.
- Prefer search APIs before full computer-use browsers.
FAQs
Research agent vs plain RAG chatbot?
RAG chat answers from retrieved chunks in one or few hops. Research agents plan multi-source investigations, keep notes, and produce cited deliverables under longer budgets.
Do they need browser automation?
Not always. Search and fetch APIs cover many cases. Use computer-use/browser agents when content needs login, clicks, or dynamic UI.
How do you prevent hallucinated citations?
Only cite sources actually fetched and stored as note cards; verify URLs/doc ids in post-processing; fail the brief if claims lack linked evidence.
When require HITL?
Before publishing externally, for regulated topics, and when sources conflict on material facts.
Interview questions
- What is an autonomous research agent?
Answer A budgeted multi-step agent that plans searches, gathers and grades sources, synthesizes findings, and delivers a cited brief with minimal hand-holding.
- What are the main pipeline stages?
Answer Brief/scope, plan queries, search, read/extract, synthesize, cite, and deliver — often with iterative hops.
- How do you keep research agents safe?
Answer Allowlist domains/tools, cap pages/hops/tokens, require claim-to-source maps, and HITL before high-stakes publish.
- How is this related to Agentic RAG?
Answer Agentic RAG supplies the retrieve-grade-hop mechanics; research agents wrap that in longer planning, note memory, and deliverable synthesis.
- How do you evaluate output quality?
Answer Check citation coverage, source quality, faithfulness to sources, brief coverage of sub-questions, and cost/latency under budget.
- When move from fetch APIs to browser agents?
Answer When critical content is behind interactive UI, logins, or client-rendered pages that simple HTTP fetch cannot access reliably.
Related topics
Practice task
Complete each numbered practice step in a notebook or doc before opening the next lesson.
- Write a research brief template (question, scope, must-include, excluded sources).
- Design note-card fields: claim, quote, url/doc_id, date, trust score.
- Set budgets: max hops, max pages, max tokens, wall-clock.
- List HITL rules for publishing a customer-facing competitive memo.
- Answer interview questions 1, 3, and 5 in two sentences each.