Auditing Artificial Intelligence: Context Engineering with Retrieval-Augmented Generation

ABSTRACT Retrieval-augmented generation (RAG) systems enhance large language models (LLMs) by integrating dynamic external data, enabling more contextually relevant and accurate outputs. As these systems gain traction in accounting applications (e.g., financial reporting, auditing, and tax), concerns emerge regarding data reliability, control oversight, and auditability. This study applies Design Science Research Methodology to develop a practical control framework tailored to the four core stages of a typical RAG system: External Data Management, User Interaction and Query Flow, Retrieval and Prompt Construction, and LLM Inference and Response. The proposed framework includes control objectives linked to stage-specific risks relevant to financial reporting. Iterative validation was conducted using an innovative multi-LLM consensus process to ensure coverage and reduce hallucination risk. This study contributes a framework for evaluating artificial intelligence (AI)-integrated systems, guidance for auditors and regulators to assess probabilistic AI outputs, extension of existing audit control frameworks, and instructional materials for accounting educators.

Authors

Institutions

Publication Details

Journal
Journal of Information Systems
Published
2026-02-01
DOI
https://doi.org/10.2308/isys-2025-045
Primary Topic
Financial Reporting and XBRL
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Auditing Artificial Intelligence: Context Engineering with Retrieval-Augmented Generation

Mark D. Sheldon
Journal of Information Systems
Financial Reporting and XBRL
article

Auditing Artificial Intelligence: Context Engineering with Retrieval-Augmented Generation

Mark D. Sheldon
article en

Abstract

ABSTRACT Retrieval-augmented generation (RAG) systems enhance large language models (LLMs) by integrating dynamic external data, enabling more contextually relevant and accurate outputs. As these systems gain traction in accounting applications (e.g., financial reporting, auditing, and tax), concerns emerge regarding data reliability, control oversight, and auditability. This study applies Design Science Research Methodology to develop a practical control framework tailored to the four core stages of a typical RAG system: External Data Management, User Interaction and Query Flow, Retrieval and Prompt Construction, and LLM Inference and Response. The proposed framework includes control objectives linked to stage-specific risks relevant to financial reporting. Iterative validation was conducted using an innovative multi-LLM consensus process to ensure coverage and reduce hallucination risk. This study contributes a framework for evaluating artificial intelligence (AI)-integrated systems, guidance for auditors and regulators to assess probabilistic AI outputs, extension of existing audit control frameworks, and instructional materials for accounting educators.

Journal of Information Systems
John Carroll University (US)
Openalex Percentile: Top 64%
Financial Reporting and XBRL
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.