AI Financial Research Pipeline: From Multi-Source Verification to an Interactive Risk Console
This article describes a three-stage pipeline for applying LLMs to financial research without making them trade-signal generators. It covers layered evidence collection and claim-level verification, structured risk factors with transmission graphs and scenario stress tests, and a single-file interactive HTML risk console. It also discusses engineering constraints such as auditability, anti-hallucination controls, evaluation sets, cost-aware model routing, and common pitfalls.
1. Where the Problem Comes From: The Information Gap Between a Sharp Rally and a Slow Decline
A common market pattern is a sharp short-term rally driven by news, followed by a long period of low-volatility drift lower. In hindsight, risk signals were often already public, but they were scattered across different channels, times, and reporting bases. Primary disclosure documents use compliance language, industry media use narrative language, and community discussions use emotional language. Human researchers spend their time finding materials and reconciling reporting bases, leaving little energy for thinking clearly about how risk propagates.
Putting an LLM into this chain is valuable not because it can directly give buy or sell conclusions, but because it can take on three tasks: aligning facts across channels, organizing scattered risks into a structure, and turning conclusions into an interactive, reviewable interface. The following sections break this down into three stages and describe the input/output contract and engineering constraints for each stage.
2. Overall Architecture: Evidence Layer, Reasoning Layer, Presentation Layer
[Multi-source collection] -> [Parsing and normalization] -> [Evidence store (with citations)] -> [Risk identification]|v[Interactive monitoring console HTML] <- [Scenario and transmission computation] <- [Structured risk graph]
The key design principle is layered decoupling: the model works only on “understanding text, extracting structure, and generating explanations,” while all numerical computation, threshold judgment, and score aggregation are handled by deterministic code. This principle determines whether the system can be audited.
3. Stage One: Multi-Source Collection and Fact Verification
3.1 Data Source Tiers
- Primary tier: periodic reports, ad hoc announcements, IPO and bond offering documents, and regulatory inquiry responses. Highest authority, slowest updates.
- Secondary tier: mainstream financial media and industry research summaries. Good timeliness, but with transcription distortion.
- Tertiary tier: community discussions and social media sentiment. Strong leading signal, highest noise; can be used only as clues, not as a basis for conclusions.
From an engineering perspective, the three tiers should be written into a unified evidence table with at least these fields: evidence_id, source_tier, publish_time, title, raw_text, url_hash, extracted_claims[]. For original links, keep only the hash and domain category to avoid compliance and copyright risk.
3.2 Extraction and Normalization
Have the model output a claim-level structure, not a paragraph summary:
{"claim_id": "C-014","statement": "Inventory turnover days increased quarter over quarter","metric": "inventory_days","period": "2026Q2","value": 118,"unit": "day","direction": "worse","evidence_id": "E-0093","confidence": 0.82}
The focus of normalization is basis alignment: the same metric may be single-quarter or trailing four-quarter, year-over-year or quarter-over-quarter, or restated across sources. Without basis fields, all later comparisons are wrong.
3.3 Cross-Verification Scoring
Compute an explainable verification score for each claim instead of letting the model “feel” it:
def verify(claim, evidences):tier_w = {1: 1.0, 2: 0.6, 3: 0.25}same = [e for e in evidences if e.metric == claim.metricand e.period == claim.period]if not same:return {"score": 0.0, "status": "unverified"}best = max(same, key=lambda e: tier_w[e.source_tier])base = tier_w[best.source_tier]agree = sum(1 for e in sameif close(e.value, claim.value, tol=0.02))conflict = len(same) - agreescore = base * (0.6 + 0.4 * agree / len(same)) - 0.15 * conflictstatus = "confirmed" if score >= 0.7 else "conflicting" if conflict else "weak"return {"score": round(max(score, 0.0), 3), "status": status,"primary": best.evidence_id}
Three hard rules: when the primary tier conflicts with the tertiary tier, the primary tier wins and the conflict is marked; key metrics must have at least two independent sources before they can enter a conclusion; and every number in the final report must be traceable back to an evidence_id.
4. Stage Two: Risk Identification, Transmission Modeling, and Scenario Generation
4.1 Structuring Risk Factors
Risks must be abstracted into a unified schema before aggregation and ranking are possible:
{"risk_id": "R-07","category": "Supply chain concentration","statement": "High dependence on a single foundry and OSAT segment","likelihood": 0.55,"impact": 0.8,"horizon": "2-4quarters","leading_indicators": ["supplier_revenue_share", "lead_time_days"],"evidence_ids": ["E-0101", "E-0117"]}
leading_indicators is the most valuable field: it turns a “risk” into a “continuously monitorable quantity.”
4.2 Transmission Relationships: From List to Graph
Risks rarely occur in isolation. Use a directed graph to express transmission: node = risk factor, edge = (source, target, strength, lag).
edges = [("R-03 Demand forecast cut", "R-07 Reduced supply chain bargaining power", 0.6, 1),("R-07 Reduced supply chain bargaining power", "R-11 Gross margin pressure", 0.7, 2),("R-11 Gross margin pressure", "R-15 Valuation multiple contraction", 0.8, 1),("R-05 Inventory buildup", "R-11 Gross margin pressure", 0.5, 1),]def impact_scores(nodes, edges, shocks, decay=0.75, rounds=6):cur = dict(shocks)total = {k: 0.0 for k in nodes}for _ in range(rounds):nxt = {k: 0.0 for k in nodes}for src, dst, w, lag in edges:if lag == 1:nxt[dst] += cur.get(src, 0.0) * w * decayfor k, v in cur.items():total[k] += vcur = nxtreturn {k: round(v, 3) for k, v in total.items()}
With a graph, two things that are difficult to do manually become possible: cycle detection (identifying self-reinforcing negative feedback, such as “price cut → margin decline → further price cut”) and critical path analysis (finding which edge removal would most reduce terminal risk).
4.3 Scenarios and Stress Testing
Do not give a single forecast. Give three to four scenarios, each tied to explicit trigger conditions and observable signals:
| Scenario | Trigger condition | Key assumption | Terminal impact |
|---|---|---|---|
| Base | Demand flat | Gross margin maintained | Moderate |
| Demand cut | Leading indicators weaken for two consecutive quarters | Revenue growth halves | Significant |
| Supply disruption | Lead time doubles at a key link | Cost rises | Severe |
| Valuation repricing | Risk resonance ≥3 items | Multiple contraction | Extreme |
Score probability and impact separately to avoid uninformative conclusions such as “high probability, high impact.” For parameter uncertainty, use Monte Carlo sampling to produce intervals rather than point values.
5. Stage Three: Output an Interactive Risk Monitoring Console
If research conclusions stop in a document, they cannot be used continuously. The third stage requires producing a single-file HTML page: inline data, no external dependencies, openable offline, and distributable by email.
Define the data contract first; the front end consumes only the contract:
{"meta": {"as_of": "2026-08-27", "tier": "anonymized_case"},"risks": [{"id": "R-07", "score": 0.61, "cat": "Supply chain"}],"edges": [{"from": "R-03", "to": "R-07", "w": 0.6}],"scenarios": [{"name": "Demand cut", "p": 0.3, "impact": 0.72}],"evidences": [{"id": "E-0101", "tier": 1, "ts": "2026-07-30"}]}
<section aria-label="Risk overview"><label for="cat">Risk category</label><select id="cat"><option>All</option><option>Supply chain</option></select><ul id="list"></ul></section><script>const D = window.__DATA__;const list = document.getElementById('list');function render(cat){list.innerHTML = '';D.risks.filter(r => cat === 'All' || r.cat === cat).sort((a,b) => b.score - a.score).forEach(r => {const li = document.createElement('li');li.textContent = `${r.id} ${(r.score*100).toFixed(0)} pts`;li.tabIndex = 0; // keyboard reachableli.setAttribute('aria-label', li.textContent);list.appendChild(li);});}document.getElementById('cat').addEventListener('change', e => render(e.target.value));render('All');</script>
Experience requirements: the default view should answer “what should I look at now” and support drill-down to the original evidence. Each score should be labeled with its basis and update time. Use a second encoding beyond color (shape or text label) to express levels so the console remains usable for users with color vision deficiency. Keep first-screen data volume within hundreds of nodes; aggregate beyond that.
6. Engineering: Turning a Demo into an Operable System
- Three anti-hallucination gates: retrieval-augmented constraints (no citation, no conclusion), externalized numerics (the model does not calculate numbers), and templated conclusions (fixed fields to fill).
- Auditability: retain
prompt_version, model_version, evidence_snapshot_idfor each generation, and support one-click tracing of “which materials this conclusion was based on at the time.” - Data pipeline: scheduled collection with a message queue for peak shaving, raw documents in object storage, parsed artifacts in a retrieval store, a container platform for stateless inference services, and logging and monitoring alerts for quality dashboards. These are generic cloud product categories; specific choices depend on compliance and budget.
- Evaluation set: build 100 to 300 verification and risk identification questions with ground truth, and track four metrics: citation accuracy, key risk recall, hallucination rate, and conclusion reproducibility. A model upgrade without an evaluation set is a blind change.
- Cost: use tiered calls, small models for extraction and large models for synthesis, and chunk long documents before routing.
7. Common Pitfalls
- Treating model summaries as facts: summaries lose the reporting basis, so return to the claim level.
- Risk lists that are too long: more than 15 items means no focus; trim by “impact × observability.”
- Scenarios without trigger conditions: unverifiable scenarios cannot be converted into monitoring actions.
- Interface showmanship: the purpose of interaction is to shorten the path from “seeing an anomaly” to “locating evidence.”
- Ignoring the time dimension: every conclusion must carry
as_of, or the console will mislead users.
8. Conclusion
“First a sharp rally, then a slow decline” is not a prediction problem; it is an evidence organization problem. The core of the three-stage pipeline is not how strong the model is, but how to convert unverifiable intuition layer by layer into cited facts, a weighted graph, scenarios with trigger conditions, and an interface anyone can open and review. Achieve these four things, and AI truly moves from “can write research reports” to “can take on the research workflow.”
