Page content

AI & Clouds12 min read

AI Research Agent: How Agentic RAG Researches Regulations, Risk and Markets

Krzysztof PytelUpdated November 5, 2026

An AI research agent is an AI system that takes a research question, plans how to answer it, searches several sources on its own, checks what it found and writes a cited answer. Unlike a chatbot that runs one search and replies, it keeps searching until the evidence is good enough or it can say clearly what is missing.

For compliance, risk and investment teams this matters because their questions rarely live in one place. "Which of our products are affected by the new EBA guidelines?" needs the regulation, your product catalogue, your policies and last year's audit findings. The volume is the other problem. AI rules alone are growing fast: CUBE recorded 157 new financial services laws, rules and regulations on the use of AI between June 2024 and May 2025, almost double the year before. Most of the work is reading to find the few items that matter, and a simple RAG chatbot cannot do that across sources.

No analyst reads all of that, and a simple RAG chatbot cannot connect it.

In this article we explain how agentic RAG works, where regulatory research AI, deep research AI for compliance and risk research automation pay off, what multi-source retrieval needs under the hood, and how to measure whether the agent can be trusted.

What is an AI research agent?

An AI research agent is built on agentic RAG: retrieval augmented generation where an AI agent, not a fixed pipeline, decides what to search, where and how many times. A survey of agentic RAG by Singh et al. (2025) describes it as embedding autonomous agents into the RAG pipeline, using four patterns: reflection, planning, tool use and multi-agent collaboration.

Classic RAG runs the same steps for every question: embed the question, fetch the top chunks, write an answer. It works for "what does our travel policy say about taxis?". It fails quietly when the first search returns weak results, because nothing checks them. Research methods such as Corrective RAG (Yan et al., 2024) add exactly that check: a small evaluator scores the retrieved documents and, when they look wrong, triggers a different search, including the web.

Classic RAG

AI research agent (agentic RAG)

Flow

Fixed: search once, answer

Loop: plan, search, check, search again, answer

Sources

Usually one vector index

Several: documents, databases, APIs, web, knowledge graph

Checks its own results

No

Yes: grades evidence, spots gaps and conflicts

Good for

Single-document Q&A

Questions that span sources, time periods or jurisdictions

Output

Short answer with chunks

Report with citations, open questions and confidence

Cost per question

Low

Higher: more model calls and tokens

Typical build

8-14 weeks

10-16 weeks

The extra cost is real. Anthropic reported that its own multi-agent research system beat a single agent by 90.2% on an internal research evaluation, but used about 15 times the tokens of a normal chat. That trade is worth it for a compliance question that would take an analyst a day. It is not worth it for a policy lookup, which is why we route simple questions to plain RAG.

Where does an AI research agent pay off in regulated industries?

Research agents earn their cost where the question is open-ended, the sources are many and a wrong answer is expensive. In FinTech, InsurTech and RegTech that points to three areas.

Regulatory research AI

Regulatory research AI tracks new rules, finds the ones that apply to you and maps them to your products, policies and controls. A typical request: "Summarise what changed in DORA's ICT third-party requirements this quarter and list which of our vendor contracts need review." The agent searches the official texts, regulator Q&As and your contract repository, then returns a gap list with a citation for every line.

Useful tasks include:

  • Horizon scanning across EU, national and sector regulators, with alerts filtered to your licences and products.
  • Impact analysis: which policies, controls and processes a new rule touches.
  • Cross-jurisdiction comparison, for example how three EU regulators interpret the same guideline.
  • Drafting the first version of a regulatory change memo for a compliance officer to review.

Deep research AI for compliance

Deep research AI for compliance applies the long, multi-step research pattern popularised by consumer "deep research" tools to compliance work, but on your own data and with stricter rules on sources. Examples are enhanced due diligence on a corporate client, preparing for a regulator's thematic review, or answering an auditor's request that spans emails, tickets and policy versions.

The bar is higher than in consumer tools. A Stanford study of AI legal research tools found that even products built on RAG gave misleading or false answers on 17% to 33% of queries. RAG reduces hallucinations - it does not remove them. A compliance agent therefore needs source allow-lists, a citation check on every claim and a human sign-off before anything leaves the team.

Risk research automation

Risk research automation lets an agent gather and compare evidence on a counterparty, an investment or an insured risk. It can pull company registers, sanctions and adverse-media sources, financial filings and your internal exposure data, then flag what changed since the last review.

Typical uses:

  • KYC and KYB refresh: what is new about this client since onboarding.
  • Credit and counterparty risk notes built from filings, ratings news and internal limits.
  • Underwriting research on a commercial risk: property data, claims history, sector news.
  • ESG and SFDR research across fund prospectuses, annual reports and KIDs.

The last example is close to work we already do. For GaiaLens we built AI analysis of fund prospectuses, annual reports and KID documents, including identification of financial instruments by ISIN, on top of an ESG platform used for SFDR reporting.

How an AI research agent works

A production AI research agent is a loop. A lead agent plans, retrieval tools fetch evidence from several sources, a checker decides whether the evidence is good enough, and only then does the agent write.

Weak or conflicting evidence sends the agent back to plan a new search; only checked evidence reaches the writer, and a person approves the report before it is used.

The main components:

  • .
  • .
Planner Breaks the question into sub-questions, picks sources for each and decides when to stop. For large questions it can hand sub-questions to parallel sub-agents.
Multi-source retrieval tools One tool per source, each with its own query style: hybrid vector and keyword search over documents, SQL over internal data, regulator APIs and websites, a knowledge graph, web search.
Evidence checker Grades each result for relevance, recency and source authority, spots conflicts between sources and lists what is still missing.
Writer and citation checker Writes the answer and verifies that every claim points to a passage that supports it. Claims without support are removed or marked as open
State and memory Keeps the plan, the sources already read and the intermediate findings, so long research runs can resume and be audited.
Guardrails User permissions on every source, allow-lists of trusted sources, limits on steps and cost, and a full trace of every call.

What multi-source retrieval needs

Multi-source retrieval is the hardest part to get right. Each source needs its own connector, its own access rules and its own idea of what "recent" and "authoritative" mean. Source quality also has to be taught: Anthropic found that its early research agents preferred SEO content farms over authoritative sources such as academic papers until source-quality rules were added to their prompts. In compliance work we go further and use allow-lists: the official journal, the regulator's site and your approved internal sources first, everything else marked as secondary.

We expose internal systems to the agent through MCP servers, so the same connector, with the same permissions, can be reused by other AI tools in your company. When an answer depends on links between entities, such as ownership chains, product-to-regulation mappings or drug interactions, the agent queries a knowledge graph instead of guessing from text. Our guide to knowledge graph development and GraphRAG explains when that is worth building.

We build agents with LangGraph, LlamaIndex agents, the Claude Agent SDK or the OpenAI Agents SDK, depending on your stack. Models run through cloud APIs or, for sensitive data, through a private LLM deployment in your own cloud or the EU.

How to evaluate an AI research agent

An AI research agent is only useful if you can measure how often it is right, and a single accuracy score is not enough. A research answer can cite the right documents and still draw the wrong conclusion, or be correct but miss the one regulation that matters. We score agents on five dimensions:

What we measure Question it answers How
Source coverage Did the agent find the documents an expert would use? Recall against an expert-built list of sources per question
Citation accuracy Does every cited passage support the claim next to it? Automated claim-by-claim check plus expert sampling
Faithfulness Does the answer stay within what the sources say? Ragas and DeepEval faithfulness metrics
Completeness Did it cover every part of the question and name the gaps? Rubric scored by an LLM judge, calibrated on expert grades
Efficiency How many steps, tokens and minutes did it take? Traces in Langfuse, cost per question

This follows the approach Anthropic describes for evaluating its own research agents: start with about 20 real questions, grade with an LLM judge against a rubric of factual accuracy, citation accuracy, completeness, source quality and tool efficiency, and keep people testing, because human reviewers catch failures that automated checks miss.

For regulated clients we build the test set with your compliance or risk experts, typically 30-50 questions with agreed answers and source lists. Every change to prompts, tools or models is run against it before release, the same way we measure classic RAG with our RAG optimization and evaluation services. In production, every run is traced with LLM observability, so you can see which sources the agent read, why it stopped and what each answer cost.

How Code & Pepper builds AI research agents

We build research agents for teams whose answers end up in front of a regulator, an auditor or an investment committee. Our relevant work includes AI analysis of fund prospectuses, annual reports and KIDs for GaiaLens, a multi-agent coaching assistant on Google ADK and Gemini for Humani, and AI-assisted data quality checks on Sohar Health's HIPAA-regulated insurance eligibility platform.

A production research agent usually takes 10-16 weeks. We work in five phases:

  • Discovery and question set (2-3 weeks). We collect 30-50 real research questions, list the sources an expert would use for each and agree what a good answer looks like.
  • Source connectors (2-4 weeks). Connectors or MCP servers for each source, with your permissions, plus hybrid search over documents.
  • Agent loop (3-5 weeks). Planner, evidence checker, writer and citation checker, with limits on steps and cost.
  • Evaluation (2-3 weeks). Scoring against the question set, expert review of samples and tuning until the agent meets the agreed bar.
  • Production and monitoring (1-2 weeks, then ongoing). Deployment in your cloud, tracing, alerts on drift and a feedback button for experts.

Three ways to start it:

  • Research agent fit check (2-3 weeks). We take 20 of your real research questions, test them against your current tools and tell you whether an agent beats a plain RAG system enough to justify the cost.
  • Pilot research agent (6-8 weeks). One use case, such as regulatory horizon scanning or KYB refresh, three to five sources and measured results against your analysts.
  • Production research agent (10-16 weeks). Full build with permissions, evaluation, monitoring and handover, or ongoing support from our team.

Spending analyst days on research an agent could draft in minutes? Book a free 30-minute call and we will map one of your research workflows to an agent design, with an honest view of whether it is worth building.

If your use case is broader than research, such as an agent that also acts in your systems, see our AI agent development services. If you already run a RAG system and want it to answer better first, start with custom RAG development or a RAG evaluation.

FAQ

What is an AI research agent?

An AI research agent is an AI system that plans how to answer a research question, searches several sources on its own, checks the evidence, searches again when needed and writes an answer with citations. It is built on agentic RAG rather than a single search-and-answer step.

What is the difference between RAG and agentic RAG?

Classic RAG searches once and answers from whatever it found. Agentic RAG puts an AI agent in charge of retrieval: it chooses sources, judges the results, rewrites queries and loops until the evidence is good enough. It handles harder questions but costs more per answer.

What is multi-source retrieval?

Multi-source retrieval means the agent can search different kinds of sources in one task, such as document stores, databases, regulator websites, APIs, knowledge graphs and the web, each with its own connector and access rules. The agent then compares and combines what it finds.

What can regulatory research AI do?

Regulatory research AI scans new rules and guidance, filters them to your licences and products, maps them to affected policies and controls, and drafts impact notes with citations. A compliance officer reviews and signs off; the agent does the reading and first draft.

What is deep research AI for compliance?

Deep research AI for compliance is a long, multi-step research agent tuned for compliance work: due diligence, thematic reviews, audit requests and regulatory change analysis. Compared with consumer deep research tools, it works on your internal data, follows source allow-lists and logs every step for audit.

What is risk research automation?

Risk research automation uses an agent to gather and compare evidence on a counterparty, client, investment or insured risk, from registers, sanctions and news sources, filings and your own exposure data. It flags what changed since the last review so analysts focus on judgement, not collection.

How accurate are AI research agents?

Accuracy depends on the sources, the checks and the evaluation behind the agent. Even commercial legal research tools built on RAG gave misleading or false answers on 17–33% of queries in a Stanford study. That is why we measure citation accuracy and faithfulness on your own question set and keep a human reviewer in the loop.

How long does it take to build an AI research agent?

A pilot on one use case takes about 6–8 weeks. A production research agent with several sources, permissions, evaluation and monitoring usually takes 10–16 weeks.

Does an AI research agent fall under the EU AI Act?

Most research agents that support internal analysts are not high-risk systems. It changes if the agent's output is used in decisions listed in Annex III, such as credit scoring of individuals or risk pricing in life and health insurance; those obligations apply from 2 December 2027 under the Digital Omnibus timeline. Our EU AI Act compliance assessment checks where your use case sits. This is general information, not legal advice.

Which frameworks do you use to build agentic RAG?

We use LangGraph, LlamaIndex agents, the Claude Agent SDK and the OpenAI Agents SDK, with Ragas, DeepEval and Langfuse for evaluation and tracing. We choose after discovery, based on your stack, hosting rules and the sources the agent must reach.