Multi-Agent AI System for Investment Thesis Validation Using Devil's Advocate

linqalpha · Finance · 2026 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Institutional investment research and thesis risk review

LinqAlpha built Devil's Advocate to help institutional investors systematically challenge investment theses, reduce confirmation bias, and surface source-backed counterarguments before investment committee decisions.

Constraints:

Architecture

Devil's Advocate is a multi-agent system on Amazon Bedrock. Investors enter an investment thesis and upload trusted documents. A Python orchestration layer on Amazon EC2 coordinates document parsing, retrieval, and synthesis. Amazon Textract extracts raw text; Claude Sonnet 3.7 VLM enriches document structure; S3 stores raw files; RDS stores structured outputs; OpenSearch indexes parsed content. Claude Sonnet 4 decomposes the thesis into assumptions, issues targeted retrieval queries, aggregates counterevidence, and produces structured citation-linked rebuttals. Parsing, retrieval, and synthesis agents run iteratively so generated critiques can trigger additional retrieval passes.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  UI["Investor Application"] --> Orchestrator["EC2 Orchestration Layer"]
  Orchestrator --> Parsing["Parsing Agent"]
  Parsing --> Textract["Amazon Textract"]
  Parsing --> VLM["Claude Sonnet 3.7 VLM"]
  Parsing --> S3["Amazon S3"]
  Parsing --> RDS["Amazon RDS"]
  Parsing --> OpenSearch["Amazon OpenSearch Service"]
  Orchestrator --> Retrieval["Retrieval Agent"]
  Retrieval --> OpenSearch
  Retrieval --> RDS
  Retrieval --> S3
  Retrieval --> Sonnet4["Claude Sonnet 4"]
  Retrieval --> Synthesis["Synthesis Agent"]
  Synthesis --> Sonnet4
  Synthesis --> UI
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Investor Application User interface where investors enter theses, upload reference documents, and review challenged assumptions. EC2 Orchestration Layer
EC2 Orchestration Layer Python-based service that coordinates API calls, parsing, routing, logging, and agent execution under persistent compute and strict network control. Investor Application, Parsing Agent, Retrieval Agent, Synthesis Agent, Amazon S3, Amazon RDS, Amazon OpenSearch Service
Parsing Agent Combines Textract OCR with Claude Sonnet 3.7 vision-language enrichment to reconstruct tables, charts, section hierarchies, headers, and footnotes. Amazon Textract, Claude Sonnet 3.7 VLM, Amazon S3, Amazon RDS, Amazon OpenSearch Service, EC2 Orchestration Layer
Amazon Textract Extracts raw text from PDFs and scanned financial documents. Parsing Agent
Claude Sonnet 3.7 VLM Vision-language parsing model used to enrich OCR with table, chart, and document-structure fidelity. Parsing Agent
Amazon S3 Stores raw uploaded source files for auditability and compliance. EC2 Orchestration Layer, Retrieval Agent
Amazon RDS Stores structured parsed document outputs for retrieval and reproducibility. EC2 Orchestration Layer, Retrieval Agent
Amazon OpenSearch Service Indexes parsed and enriched content for targeted retrieval of counterevidence. Parsing Agent, Retrieval Agent
Retrieval Agent Claude Sonnet 4-powered agent that decomposes assumptions into targeted retrieval queries and aggregates counterevidence. Amazon OpenSearch Service, Amazon RDS, Amazon S3, Synthesis Agent, Claude Sonnet 4
Synthesis Agent Claude Sonnet 4-powered agent that composes structured rebuttals, citations, and risk flags for user review. Retrieval Agent, Investor Application, Claude Sonnet 4
Claude Sonnet 4 Reasoning model for assumption decomposition, retrieval query formulation, and rebuttal generation. Retrieval Agent, Synthesis Agent

Data flow

The investor submits a thesis or IC memo through LinqAlpha's application and uploads reference documents such as expert calls, broker reports, 10-Ks, and transcripts. EC2 receives the request, routes it to Bedrock, and coordinates a preprocessing pipeline. Textract extracts OCR text, Claude Sonnet 3.7 VLM reconstructs tables, charts, headers, footnotes, and section hierarchy, raw files remain in S3, structured content is stored in RDS, and parsed content is indexed in OpenSearch. Claude Sonnet 4 decomposes assumptions, formulates targeted retrieval queries, retrieves counterevidence from OpenSearch/RDS/S3, and the synthesis agent returns JSON counterarguments with document type, document ID, page, excerpt, and risk flag.

4 supporting quotes
“Investors upload research such as broker reports, expert calls, and public filings in the Upload Files field”article, stated
“The input is received by a custom application running in an Amazon Elastic Compute Cloud (Amazon EC2) instance”article, stated
“Claude Sonnet 4 by Anthropic in Amazon Bedrock issues targeted retrieval queries across Amazon OpenSearch Service and aggregates counter-evidence from Amazon RDS and Amazon S3.”article, stated
“Each counterpoint is linked to original materials for traceability.”article, stated

Why this architecture

LinqAlpha splits parsing, retrieval, and synthesis because investment thesis validation needs both document fidelity and adversarial reasoning. Claude Sonnet 3.7 VLM preserves visual and structural information that OCR can distort, while Claude Sonnet 4 handles assumption decomposition and counterargument synthesis. EC2 was chosen over Lambda or Fargate because regulated-finance customers needed persistent compute, auditable logs, and strict network control. S3/RDS/OpenSearch separate raw storage, structured content, and fast retrieval so every counterargument can point back to its source.

4 supporting quotes
“Amazon EC2 was selected because customers in regulated finance environments required persistent compute with auditable logs and strict control over networking.”article, stated
“This separation facilitates both accurate document fidelity and advanced analytical rigor.”article, stated
“Sonnet 3.7 multimodal capabilities augment Amazon Textract by reconstructing tables, charts, and section hierarchies that plain OCR often distorts.”article, stated
“Every counterargument is linked back to its source document (10-K, broker note, transcript), creating an auditable trail that meets institutional governance standards.”article, stated

Models used: Claude Sonnet 3.7 VLM on Amazon Bedrock · Claude Sonnet 4.0 by Anthropic on Amazon Bedrock

Scale

Alternatives considered (roads not taken)

Manual devil's-advocate reviews in meetings or informal pros/cons analysis

Rejected because: Manual challenge processes are time-consuming, inconsistent, and vulnerable to confirmation bias.

“Investors have traditionally engaged in devil’s advocate thinking through manual processes, debating ideas in team meetings, or mapping out pros and cons through informal scenario analysis.”article, stated
“Confirmation bias and scattered workflows make it hard to challenge one’s own ideas objectively.”article, stated

A fixed linear pipeline

Rejected because: LinqAlpha needed iterative back-and-forth among analysis, retrieval, and synthesis so critiques can trigger additional retrieval passes.

“Unlike a fixed pipeline, these agents interact iteratively: the analysis agent decomposes assumptions, the retrieval agent queries sources, and the synthesis agent generates counterarguments before looping back”article, stated

Pure Textract OCR for financial document parsing

Rejected because: Plain OCR can distort tables, charts, and section hierarchy, so Sonnet 3.7 VLM enriches the extracted structure.

“Sonnet 3.7 multimodal capabilities augment Amazon Textract by reconstructing tables, charts, and section hierarchies that plain OCR often distorts.”article, stated

Lambda or Fargate for the orchestration layer

Rejected because: Regulated finance customers required persistent compute, auditable logs, and strict networking controls.

“AWS Lambda or AWS Fargate could have been alternatives, but Amazon EC2 was selected”article, stated
“customers in regulated finance environments required persistent compute with auditable logs and strict control over networking.”article, stated

Patterns

multi-agent-orchestration (architecture)

Devil's Advocate coordinates parsing, retrieval, and synthesis agents that iterate rather than run as a static one-pass pipeline.

“The Devil’s Advocate agent is a multi-agent system that orchestrates specialized agents for document parsing, retrieval, and rebuttal generation.”article, stated
“These agents run iteratively: the Parsing agent enriches documents, the Retrieval agent surfaces potential counter-evidence, and the Synthesis agent generates critiques”article, stated

rag-retrieval (architecture)

The retrieval agent formulates targeted queries against OpenSearch and aggregates evidence from RDS and S3 before synthesis.

“For each assumption, issue retrieval queries against uploaded sources (OpenSearch index, RDS, S3).”article, stated
“Retrieval agent – Powered by Claude Sonnet 4, formulates retrieval queries against OpenSearch Service and aggregates counterevidence from Amazon RDS and Amazon S3”article, stated

structured-output-validation (quality)

The rebuttal prompt requires JSON fields for assumptions, counterarguments, citation metadata, and materiality risk flags.

“Step 3. Structured Output For each assumption, output in JSON with the following fields:”article, stated
“Synthesis agent – Also using Claude Sonnet 4, composes structured rebuttals, citation-linked to original sources, and formats outputs in machine-readable JSON for auditability.”article, stated

safety-policy-enforcement (safety)

The deployment keeps customer documents in secure AWS environments and uses EC2/VPC controls for regulated investor data.

“The Amazon Bedrock integration with private S3 buckets and Amazon Virtual Private Cloud (Amazon VPC) deployed EC2 instances keeps sensitive documents within the firm’s secure AWS environment”article, stated
“a critical requirement for regulated investors.”article, stated

human-in-the-loop-gate (safety)

The system produces source-linked critiques for investors to review, trace back to source documents, and judge before changing investment decisions.

“Investors can trace each challenge back to its source and evaluate whether their thesis still holds under pressure.”article, stated
“The final critique is returned to the user interface, showing a list of challenged assumptions and supporting evidence.”article, stated

model-routing (architecture)

Different Claude versions are assigned to distinct jobs: Sonnet 3.7 VLM for parsing fidelity and Sonnet 4 for reasoning and rebuttal generation.

“combining Claude Sonnet 3.7 for document parsing with vision-language support, and Claude Sonnet 4.0 for reasoning and rebuttal generation.”article, stated

Tradeoffs

Use EC2 for orchestration.

Chose Persistent EC2 orchestration layer over AWS Lambda or AWS Fargate orchestration.

Rationale: Regulated institutional-finance customers required auditable logs and strict networking controls.

“AWS Lambda or AWS Fargate could have been alternatives, but Amazon EC2 was selected”article, stated
“customers in regulated finance environments required persistent compute with auditable logs and strict control over networking.”article, stated

Split parsing and reasoning across different Claude models.

Chose Claude Sonnet 3.7 VLM for document parsing and Claude Sonnet 4 for reasoning/rebuttal over One model handling parsing, retrieval, and synthesis.

Rationale: Document fidelity and analytical rigor require different model strengths.

“This separation facilitates both accurate document fidelity and advanced analytical rigor.”article, stated
“Sonnet 4.0 delivers stronger chain-of-thought reasoning, sharper assumption decomposition, and more reliable generation of structured counterarguments.”article, stated

Use uploaded trusted sources as the evidence boundary.

Chose Counterarguments grounded in user-provided filings, broker reports, expert calls, and transcripts over Open-ended web or model-prior criticism.

Rationale: Institutional investors need auditable, source-linked skepticism rather than unsupported adversarial prose.

“Always use provided documents (expert calls, broker reports, 10-Ks, transcripts).”article, stated
“Each counterpoint is linked to original materials for traceability.”article, stated

Return neutral structured critiques rather than persuasive bearish narratives.

Chose Factual JSON counterarguments with citations and risk flags over Speculative or duplicated criticism.

Rationale: The prompt explicitly requires neutral tone, citations, no speculation, no duplication, and no-counter-evidence handling.

“Keep tone factual and neutral (avoid speculation). - Avoid duplication of evidence across assumptions unless highly relevant.”article, stated
“If no relevant evidence exists, clearly state "no counter-evidence found".”article, stated

Gotchas (what bit them)

Investors can miss thesis risks when challenge workflows are informal.

Root cause: Confirmation bias and scattered evidence make it hard to objectively identify contradictory information across expert calls, broker reports, and filings.

Resolution: Devil's Advocate decomposes theses into assumptions, retrieves counterevidence, and returns citation-linked counterarguments.

“Confirmation bias and scattered workflows make it hard to challenge one’s own ideas objectively.”article, stated
“The system generates a structured critique where each assumption is restated and directly challenged.”article, stated

Plain OCR can damage the evidence base for financial research.

Root cause: Financial documents contain tables, charts, headers, footnotes, and hierarchy that pure OCR can distort.

Resolution: LinqAlpha combines Textract with Claude Sonnet 3.7 VLM structural enrichment before indexing.

“Sonnet 3.7 multimodal capabilities augment Amazon Textract by reconstructing tables, charts, and section hierarchies that plain OCR often distorts.”article, stated

A static pipeline may stop too early on weak or incomplete counterevidence.

Root cause: Synthesis can reveal gaps that require additional retrieval passes.

Resolution: The parsing, retrieval, and synthesis agents loop iteratively, allowing generated critiques to trigger more retrieval.

“the Synthesis agent generates critiques that might trigger additional retrieval passes. This back-and-forth orchestration”article, stated

Regulated finance deployment requirements rule out purely convenience-driven infrastructure choices.

Root cause: Customers need auditable logs, persistent compute, strict network control, and secure document handling.

Resolution: LinqAlpha selected EC2 orchestration and private AWS storage/search services rather than Lambda/Fargate for the orchestration layer.

“Amazon EC2 was selected because customers in regulated finance environments required persistent compute with auditable logs and strict control over networking.”article, stated

Evaluation

The case reports workflow speed and customer feedback, and it enforces traceability through source-linked citations. It does not provide rigorous quantitative accuracy, retrieval precision/recall, or false-positive metrics.

Metrics: 5-10 times the speed of traditional review. · Over 170 hedge funds and asset managers use LinqAlpha. · Devil's Advocate is one of over 50 agents in the broader system. · Every counterargument is linked back to source documents for auditability.

3 supporting quotes
“using their own trusted sources at 5–10 times the speed of traditional review.”article, stated
“Every counterargument is linked back to its source document (10-K, broker note, transcript), creating an auditable trail that meets institutional governance standards.”article, stated
“Over 170 hedge funds and asset managers worldwide use LinqAlpha to streamline their investment research”article, stated

Outcomes

LinqAlpha reports over 170 institutional investor customers, over 50 intelligent agents, and large-document support through Sonnet 4's 1M-token context window.

3 supporting quotes
“using their own trusted sources at 5–10 times the speed of traditional review.”article, stated
“Devil’s Advocate is one of over 50 intelligent agents in LinqAlpha’s multi-agent research system”article, stated
“IC memos and stock pitches can benefit from structured, source-grounded skepticism, supporting clearer reasoning and more disciplined decision-making.”article, stated