Inferensys

Prompt

Financial Report Q&A Prompt with Source Attribution

A practical prompt playbook for using Financial Report Q&A Prompt with Source Attribution in production AI workflows.
Wide-angle shot of a modern WeWork open floor plan with creative walls covered in AI system architecture diagrams, product team collaborating in standing desk area with industrial lighting.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the precise job-to-be-done, ideal user profile, required inputs, and critical limitations for the Financial Report Q&A prompt.

This prompt is designed for financial analysts, audit teams, and AI engineers building Q&A systems over financial filings, earnings reports, and disclosures. Its primary job is to force the model to answer strictly from provided context, attach exact section references, date-stamp all figures, and explicitly label forward-looking statements versus historical data. Use it when the cost of a hallucinated number or misattributed quote is higher than the cost of a non-answer—for example, when preparing audit evidence, drafting analyst notes, or generating investor communications from SEC filings.

The ideal user provides a complete [CONTEXT] block containing the full text of the relevant financial document sections, not just summaries or metadata. The prompt expects the model to refuse to answer if the context is insufficient, rather than inventing plausible-sounding figures. It is built for single-hop or multi-hop questions that can be resolved within the provided context, such as 'What was the Q3 2024 revenue for the Widgets segment?' or 'Identify all forward-looking statements regarding capital expenditure in the MD&A section.' The output contract requires structured JSON with fields for the answer, source citations including section names and paragraph references, date stamps for all numerical claims, and a boolean flag indicating whether the answer contains forward-looking information.

Do not use this prompt for general financial advice, real-time market commentary, or scenarios where retrieved context is not provided. It is not a replacement for a financial advisor, nor is it designed to interpret market sentiment or predict stock movements. The prompt explicitly instructs the model to abstain when context is missing, but it cannot detect whether the provided context itself is outdated or incomplete—that responsibility remains with the retrieval pipeline and the human operator. For production deployments, always pair this prompt with a retrieval system that fetches the correct filing version and date, and implement post-generation validation to verify that every cited figure can be traced back to the source text.

PRACTICAL GUARDRAILS

Use Case Fit

Where this prompt works and where it does not. Understand the operational boundaries before deploying into a financial Q&A workflow.

01

Strong Fit: Structured Financial Filings

Use when: querying 10-K, 10-Q, 8-K, earnings transcripts, and other structured filings with clear section markers. Guardrail: Pre-chunk documents by item/section to preserve header hierarchy for accurate source attribution.

02

Poor Fit: Real-Time Market Data

Avoid when: asking for live stock prices, intraday movements, or breaking news not yet in a filing. Guardrail: Route real-time queries to a market data API tool before invoking this prompt. The prompt should abstain if retrieval context lacks a publication date within the requested window.

03

Required Inputs

Risk: Garbage-in, garbage-out. The prompt cannot compensate for missing or poorly chunked retrieval context. Guardrail: Ensure the pipeline provides full document metadata (filing type, company, period end date, filing date) alongside each chunk. Validate retrieval coverage before generation.

04

Operational Risk: Forward-Looking Statement Confusion

Risk: The model may present projections, guidance, or forward-looking statements as historical fact. Guardrail: The prompt must explicitly flag forward-looking statements and separate them from reported historical data. Add a post-generation check that scans for future-tense verbs without a 'forward-looking' label.

05

Operational Risk: Temporal Staleness

Risk: Answers may blend data from different reporting periods without the user realizing it. Guardrail: The prompt must date-stamp every figure and surface the filing period. Implement a temporal consistency eval that fails the response if figures from different periods are compared without explicit labeling.

06

Not a Replacement for Auditor Judgment

Risk: Users may treat the output as audited analysis rather than a retrieval-and-synthesis aid. Guardrail: The system message must include a clear disclaimer that the output is not audit evidence or financial advice. All outputs in a production harness should route to a human review queue before client delivery.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A production-ready system prompt for answering financial questions with mandatory source attribution, temporal context, and forward-looking statement flagging.

This prompt template is designed to be placed directly into your system instructions for a financial report Q&A application. It enforces strict source attribution, requiring every factual claim to be linked to a specific section, date, and filing. The template uses square-bracket placeholders that you must replace with your application's specific values before deployment. The core instruction set constrains the model to answer only from provided context, flag forward-looking statements, and explicitly state when information is unavailable.

code
You are a financial report Q&A assistant. Your answers must be precise, traceable, and grounded exclusively in the provided [CONTEXT].

## Core Rules
- Answer ONLY using information explicitly present in [CONTEXT]. If the answer is not in [CONTEXT], state "The provided documents do not contain this information." Do not guess or use external knowledge.
- For every factual claim, cite the source using the format: [Source: Document Name, Section, Date].
- Distinguish between historical data and forward-looking statements. Flag all forward-looking statements with: [FLS: This statement reflects management expectations as of [DATE] and is subject to risks and uncertainties.]
- If figures from different periods are compared, explicitly state the end dates for each period.
- If [CONTEXT] contains conflicting information, present both data points with their sources and flag the discrepancy.

## Input
[CONTEXT]:
"""
[RETRIEVED_DOCUMENTS]
"""

[QUERY]:
"""
[USER_QUESTION]
"""

## Output Format
Return a JSON object with the following schema:
{
  "answer": "string (the synthesized answer with inline citations)",
  "sources": [{"document": "string", "section": "string", "date": "string", "excerpt": "string"}],
  "forward_looking_statements": [{"statement": "string", "source": "string", "date": "string"}],
  "data_limitations": "string (any temporal, scope, or conflict caveats)",
  "abstention": "boolean (true if the answer could not be found in context)"
}

## Constraints
- Do not invent financial figures, dates, or ratios.
- Do not provide investment advice or interpretive commentary beyond what is directly stated.
- If a figure is preliminary, estimated, or restated, note this explicitly.
- Prioritize the most recent filing when temporal conflicts arise, but note the discrepancy.

To adapt this template, replace [RETRIEVED_DOCUMENTS] with your RAG pipeline's output, ensuring each chunk includes metadata for document name, section, and date. Replace [USER_QUESTION] with the end-user's query. Before production, validate that your retrieval system consistently provides the date-stamped metadata this prompt requires. Run a set of golden test queries through the assembled prompt and check that the output JSON strictly conforms to the schema, that citations are not hallucinated, and that forward-looking statements are correctly flagged. For high-stakes financial reporting workflows, always route outputs through a human review step before distribution.

IMPLEMENTATION TABLE

Prompt Variables

Inputs the prompt needs to work reliably for financial report Q&A with source attribution.

PlaceholderPurposeExampleValidation Notes

[QUERY]

The user question about financial data

What was the Q3 2024 revenue for the Asia-Pacific segment?

Non-empty string; check for vague requests and prompt for specificity if needed

[RETRIEVED_CONTEXT]

Passages from financial reports, filings, and disclosures

10-K Item 7 MD&A section, Q3 2024 earnings release tables

Must contain document metadata including source title, filing date, and section reference

[REPORT_DATE]

The as-of date for the financial data being queried

2024-12-31

ISO 8601 date format; validate that retrieved context timestamps are not newer than this date

[CITATION_STYLE]

The required format for source references in the answer

inline-parenthetical

Enum check: inline-parenthetical, footnote, section-reference, or full-legal-citation

[FORWARD_LOOKING_FLAG]

Instruction to identify and label forward-looking statements

Boolean; when true, require explicit labeling of projections, estimates, and non-historical claims

[NUMERICAL_PRECISION]

The rounding and unit convention for financial figures

millions-USD-one-decimal

Enum check: exact, thousands, millions, billions; validate unit consistency across answer

[CONFIDENCE_THRESHOLD]

Minimum confidence score required to provide an answer without caveats

0.85

Float 0.0-1.0; if below threshold, require uncertainty language and abstention consideration

[OUTPUT_SCHEMA]

The expected structure for the generated answer

JSON with answer, citations, forward_looking_flags, confidence, temporal_context

Schema validation required; reject outputs missing required fields or with malformed citations

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Financial Report Q&A prompt into a production RAG pipeline with validation, retries, and audit logging.

The Financial Report Q&A prompt is designed to operate inside a retrieval-augmented generation (RAG) pipeline, not as a standalone chat interface. The application layer is responsible for document ingestion, chunking, retrieval, and post-generation validation before any answer reaches an analyst or audit team member. Treat this prompt as one component in a larger harness that includes a retriever, a numerical validator, a temporal consistency checker, and an audit logger.

Begin by assembling the prompt context from a retrieval step. For financial filings, prefer section-aware chunking that preserves the SEC item number, filing date, and document type in each chunk's metadata. When the user submits a question, run retrieval across the target filing set and include the top-k chunks with their metadata in the [CONTEXT] placeholder. If the question contains a temporal reference like 'Q3 2024,' inject a date filter into the retrieval query to avoid pulling stale figures. The [CONSTRAINTS] placeholder should enforce citation format (e.g., 'Item 7, FY2024 10-K, p. 42'), flag forward-looking statements, and require date-stamped figures. The [RISK_LEVEL] field should be set to 'high' for any question involving material financial figures, which triggers additional post-generation checks.

After the model returns an answer, run a structured validation layer before surfacing the output. Parse the answer for cited figures and cross-reference them against the source chunks using a numerical extraction validator. If a cited figure does not appear in the source text, flag the answer for human review and log the mismatch. Implement a temporal consistency check that verifies all date-stamped figures align with the filing period referenced in the question. For high-risk queries, route the answer to a review queue where an analyst can confirm or reject the response. Log every answer, its citations, validation results, and the reviewer's decision for audit trail purposes. Use a model with strong instruction-following and low hallucination rates on numerical data; Claude 3.5 Sonnet or GPT-4o are reasonable starting points, but run your own eval on a golden dataset of financial Q&A pairs before committing to a model.

Avoid wiring this prompt directly into a customer-facing chatbot without the validation harness. Financial figures carry material consequences, and even small hallucination rates on numbers can erode trust. If you are building for an internal audit team, integrate the prompt into a document Q&A interface that shows source passages alongside the answer so reviewers can spot-check citations. For SEC filing analysis, consider maintaining a filing-date index so the retriever never mixes figures from different reporting periods unless the question explicitly asks for a comparison. The next step after implementing the harness is to build a regression test suite using the eval criteria described in the Testing and QA section of this playbook.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the required fields, types, and validation rules for the structured JSON output generated by the Financial Report Q&A prompt. Use this contract to build a post-processing validator that rejects non-conformant answers before they reach the user.

Field or ElementType or FormatRequiredValidation Rule

answer_summary

string

Must be a non-empty string between 50 and 500 characters. Must not contain markdown headers or bullet points.

detailed_answer

string

Must be a non-empty string. All numerical figures must be enclosed in a <figure> tag with a date attribute. Forward-looking statements must be wrapped in a <forward_looking> tag.

source_attributions

array of objects

Array length must be >= 1. Each object must pass the source_attribution sub-schema validation. If no source is found, the answer should be an abstention, not an empty array.

source_attributions[].source_document

string

Must match a known document title from the retrieval context. A fuzzy match against the provided document list is acceptable; an exact match is preferred.

source_attributions[].section_reference

string

Must be a non-empty string matching a section heading or item number pattern (e.g., 'Item 1A', 'Note 3'). Validate with regex: ^(Item\s+[A-Z0-9]+|Note\s+\d+|Part\s+[IVX]+).*.

source_attributions[].direct_quote

string

If present, the string must be a verbatim substring of the retrieved source text. Validate by performing an exact substring match against the provided context. Null is allowed.

data_figures

array of objects

If present, each object must pass the data_figure sub-schema validation. An empty array is allowed if no figures are cited.

data_figures[].value

number

Must be a valid number. Check for NaN. The value must be extractable from the source context to prevent hallucination.

data_figures[].unit

string

Must be a non-empty string from a controlled vocabulary: ['USD', 'shares', 'basis_points', 'percentage', 'ratio', 'count'].

data_figures[].as_of_date

string (YYYY-MM-DD)

Must be a valid date string in ISO 8601 format. The date must be logically consistent with the filing period of the source document.

data_figures[].source_quote

string

Must be a verbatim substring of the retrieved source text containing the figure. Validate by exact substring match.

uncertainty_flags

array of strings

If present, each string must be from a controlled vocabulary: ['forward_looking_statement', 'non_gaap_metric', 'estimate', 'preliminary', 'conflicting_sources', 'temporal_mismatch']. An empty array is allowed.

abstention

object

Required if the answer cannot be grounded. If present, the reason field must be a non-empty string and suggested_retrieval must be a non-empty string. If absent, the detailed_answer field is required.

PRACTICAL GUARDRAILS

Common Failure Modes

Financial report Q&A systems fail in predictable ways—hallucinated figures, stale data, and misattributed sources. These cards identify the most common production failure modes and provide concrete guardrails to catch them before users do.

01

Numerical Hallucination

What to watch: The model generates plausible-sounding financial figures that don't appear in any source document. Revenue numbers, percentages, and dollar amounts are fabricated with high confidence, especially when retrieval returns partial or noisy context. Guardrail: Require every numerical claim to include an inline citation to a specific source section. Post-process answers to extract all numbers and verify each one against the retrieved context using a deterministic regex match before returning to the user.

02

Temporal Context Collapse

What to watch: The model conflates figures from different reporting periods—mixing Q2 revenue with full-year guidance, or comparing a current metric against a stale baseline. This is especially dangerous when retrieval returns documents spanning multiple quarters or fiscal years without clear date metadata. Guardrail: Include the document date and reporting period in every retrieved chunk's metadata. Add a prompt constraint requiring date-stamped references for every figure. Implement a post-generation check that flags answers where cited dates don't match the user's temporal scope.

03

Forward-Looking Statement Misrepresentation

What to watch: The model presents forward-looking statements, projections, and guidance as if they are historical facts. Safe-harbor language is stripped, and aspirational targets are reported as achieved results. This creates material misrepresentation risk for financial analysis use cases. Guardrail: Add a classification step that identifies forward-looking language in source chunks before answer generation. Require the prompt to explicitly label any projection, estimate, or guidance statement with a [FORWARD-LOOKING] tag. Implement a human review gate for any answer containing forward-looking content.

04

Source Attribution Drift

What to watch: The model cites a source section that exists but doesn't actually contain the claimed information—or attributes a figure to the wrong filing entirely. This is common when multiple documents share similar section structures or when retrieval returns adjacent but irrelevant chunks. Guardrail: Implement a citation verification step that extracts the claimed source reference, retrieves the exact section text, and checks for semantic entailment between the claim and the source. Flag any answer where the cited section doesn't support the claim for human review.

05

Non-GAAP and GAAP Confusion

What to watch: The model mixes GAAP and non-GAAP metrics without labeling the distinction—presenting adjusted EBITDA alongside GAAP net income as if they're comparable, or failing to note reconciliation differences. This misleads users who need to understand which figures follow standardized accounting rules. Guardrail: Include a prompt instruction requiring explicit labeling of GAAP versus non-GAAP figures. Add a post-generation validation that checks for known non-GAAP terms and verifies that reconciliation language or caveats are present when non-GAAP metrics appear in the answer.

06

Missing Negative Evidence

What to watch: The model answers with available positive evidence but omits risk factors, loss contingencies, or adverse trends that appear in the same source documents. This creates an overly optimistic picture by selectively synthesizing only favorable data points from the retrieved context. Guardrail: Add a prompt constraint requiring balanced synthesis that explicitly surfaces risks, uncertainties, and negative trends when they appear in the retrieved context. Implement an eval check that compares the sentiment distribution of the answer against the sentiment distribution of the source chunks to detect selective reporting.

IMPLEMENTATION TABLE

Evaluation Rubric

Test output quality before shipping the Financial Report Q&A prompt. Each criterion targets a known failure mode in financial RAG systems, including numerical hallucination, temporal confusion, and forward-looking statement misattribution.

CriterionPass StandardFailure SignalTest Method

Source Attribution Completeness

Every numerical claim and factual statement includes a source section reference (e.g., Item 7, MD&A) and filing date

Answer contains a dollar amount, percentage, or trend claim without a bracketed source reference

Parse output for all numeric tokens; confirm each is adjacent to a source citation pattern like [10-K FY2023, Item 7]

Forward-Looking Statement Flagging

All statements containing projections, estimates, or future expectations are explicitly labeled as forward-looking

A sentence using 'expects', 'anticipates', 'projects', or 'estimates' appears without a [Forward-Looking] tag

Regex scan for forward-looking keywords; assert each occurrence is within 50 characters of a [Forward-Looking] or [FLS] label

Numerical Accuracy Against Source

All extracted figures match the source document exactly, including rounding, units (millions vs billions), and sign

A retrieved figure differs from the source by any amount, or unit conversion introduces a rounding error

Golden dataset: 20 known figures from filings; compare extracted values byte-for-byte against ground truth; fail on any mismatch

Temporal Context Correctness

Every figure is associated with the correct fiscal period and filing date; comparisons use consistent time boundaries

A Q2 figure is attributed to Q3, or a year-over-year comparison mixes fiscal and calendar years

Include temporal metadata assertions in test cases; verify [Period] and [Filing Date] fields match the source document metadata

Uncertainty Disclosure

When source data is ambiguous, incomplete, or based on estimates, the answer includes explicit uncertainty language

Answer presents an estimated or pro-forma figure as a definitive fact without caveat

Inject test documents with explicit 'subject to adjustment' or 'preliminary' labels; assert output contains 'preliminary' or 'estimated' when these labels are present

Abstention on Missing Data

Prompt returns 'Information not found in provided documents' when the answer is not present in retrieved context

Model fabricates a plausible-sounding figure or explanation when the source documents lack the requested data

Query for a known-absent metric (e.g., 'Q3 2025 revenue' when documents only cover through Q2 2025); assert abstention response

Non-GAAP Reconciliation Flagging

When non-GAAP figures appear, the answer notes the nearest GAAP equivalent or flags the absence of reconciliation

A non-GAAP metric (e.g., Adjusted EBITDA) is reported without reference to the GAAP reconciliation or a note that reconciliation was not provided

Test with documents containing non-GAAP disclosures; assert output contains 'GAAP', 'reconciliation', or 'non-GAAP' within the same paragraph as the non-GAAP figure

Multi-Document Consistency

When multiple filings cover the same period, the answer uses the most recent filing and notes any restatements

Answer cites an older filing's figure when a more recent filing or restatement exists in the retrieved context

Provide two filings with a restated figure; assert the output uses the restated value and mentions the restatement

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base prompt and a small set of 2-3 earnings reports or 10-K filings. Use manual retrieval—paste relevant sections directly into [CONTEXT]. Skip strict schema validation and focus on whether the model correctly attributes figures to sections and flags forward-looking statements.

Simplify the output schema to a few key fields: answer, citations, forward_looking_flag. Run 10-15 test queries manually and review every answer for hallucinated numbers.

Watch for

  • Model inventing section numbers or dates not present in the provided context
  • Forward-looking statements presented as historical facts
  • Numerical values rounded or altered from source text
  • Missing temporal context (e.g., Q2 figure cited without year)
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.