This prompt is designed for governance teams, AI auditors, and compliance engineers who need to produce a standardized, structured transparency report for a query-answer pair. The report documents source selection criteria, ranking methodology, conflict resolution steps, and grounding verification results. Use this prompt when an AI system's output must be accompanied by an auditable evidence trail for internal review, regulatory compliance, or customer trust requirements. This prompt assumes that the query, final answer, and a set of retrieved evidence passages are already available. It does not perform retrieval or answer generation; it documents the evidential basis of an existing answer.
Prompt
Evidence Transparency Report Generation Prompt Template

When to Use This Prompt
A practical guide to when the Evidence Transparency Report Generation prompt is the right tool, and when it isn't.
The ideal user is someone who already has a complete query-answer-evidence tuple and needs to generate a machine-readable, schema-compliant report that can be stored, reviewed, or submitted as part of an audit package. This prompt is not a replacement for a retrieval pipeline, a hallucination detector, or an answer generator. It is a documentation tool that sits downstream of those components. If you need to verify whether an answer is actually supported by evidence, use the Answer Grounding Verification Prompt Template or Hallucination Flagging with Source Evidence Prompt Template instead. If you need to rank evidence before generating an answer, use the Evidence Ranking and Prioritization playbook.
Do not use this prompt when the underlying evidence is unavailable, when the answer was generated without retrieval, or when the system cannot provide the raw passages that informed the response. The report's value depends entirely on the completeness and honesty of the inputs. If the evidence set is incomplete or the answer was generated from model parametric knowledge, the transparency report will be misleading. For high-risk domains such as healthcare, legal, or financial compliance, always pair this prompt with a human review step and ensure that the evidence passages are logged immutably before report generation begins.
Use Case Fit
Where the Evidence Transparency Report prompt works, where it fails, and what you must provide before using it in a production pipeline.
Good Fit: Structured Audit Workflows
Use when: governance, compliance, or AI audit teams need a standardized, machine-readable transparency report for every query-answer pair. Guardrail: define a fixed output schema and validate every report against it before storage.
Bad Fit: Real-Time User-Facing Explanations
Avoid when: end users need a one-sentence justification in a chat UI. This prompt produces a dense, structured report. Guardrail: use a separate, lightweight explanation prompt for user-facing surfaces and reserve this report for internal audit trails.
Required Inputs: Query-Answer Pair and Evidence Set
What you must provide: the original user query, the final generated answer, the full set of retrieved evidence passages, and the ranking/scoring metadata. Guardrail: missing any input produces an incomplete report; validate input presence before invoking the prompt.
Operational Risk: Schema Drift Over Time
What to watch: report structure changes as your RAG pipeline evolves, breaking downstream audit tools. Guardrail: version your report schema, run regression tests on historical query-answer pairs, and treat schema changes as breaking changes.
Operational Risk: Hallucinated Methodology Descriptions
What to watch: the model may invent ranking criteria or source selection logic that was never implemented. Guardrail: provide the actual methodology as a grounded input parameter and instruct the model to cite only provided methods, never fabricate.
Scale Limit: High-Volume Production Pipelines
What to watch: generating a full transparency report for every query is expensive and may exceed latency budgets. Guardrail: sample reports for audit, generate on-demand for flagged queries, or run asynchronously outside the critical path.
Copy-Ready Prompt Template
A reusable prompt template for generating a structured evidence transparency report with square-bracket placeholders ready for adaptation.
The prompt template below generates a standardized evidence transparency report for a given query-answer pair. It requires the original query, the generated answer, the full set of retrieved evidence passages, and the ranking methodology used. Replace each square-bracket placeholder with real data before sending this prompt to the model. The template enforces a strict output schema so that downstream systems can parse and store the report reliably.
textYou are an evidence transparency auditor. Your task is to produce a structured transparency report for a query-answer pair, documenting how evidence was selected, ranked, and used to ground the answer. ## INPUTS **Query:** [QUERY] **Generated Answer:** [ANSWER] **Retrieved Evidence Passages:** [EVIDENCE_PASSAGES] **Ranking Methodology:** [RANKING_METHODOLOGY] **Source Metadata (optional):** [SOURCE_METADATA] ## OUTPUT SCHEMA Return a JSON object with the following structure: ```json { "report_id": "string", "query": "string", "answer": "string", "evidence_summary": { "total_passages_retrieved": "integer", "total_passages_selected": "integer", "selection_criteria": ["string"] }, "ranking_methodology": { "description": "string", "criteria": [ { "name": "string", "weight": "number", "description": "string" } ] }, "selected_evidence": [ { "passage_id": "string", "passage_text": "string", "rank": "integer", "relevance_score": "number", "selection_rationale": "string", "source_authority": "string", "recency": "string" } ], "conflict_analysis": { "conflicts_detected": "boolean", "conflicts": [ { "passage_ids": ["string"], "conflict_description": "string", "resolution": "string" } ] }, "grounding_verification": { "claims_in_answer": [ { "claim": "string", "supporting_passage_ids": ["string"], "support_level": "fully_supported | partially_supported | unsupported", "explanation": "string" } ], "overall_grounding_score": "number", "unsupported_claims_count": "integer" }, "sufficiency_assessment": { "evidence_sufficient": "boolean", "information_gaps": ["string"], "recommendation": "answer | refuse | request_more_context" }, "confidence_statement": "string" }
CONSTRAINTS
- Every claim in the answer must be mapped to at least one evidence passage in the grounding verification section.
- If a claim has no supporting passage, mark it as "unsupported" and include it in the unsupported_claims_count.
- For conflicts, describe the nature of the disagreement and how it was resolved. Do not fabricate resolution if none exists.
- The confidence statement must reflect evidence quality, source agreement, and information completeness. Do not express confidence higher than the evidence supports.
- If evidence is insufficient to answer the query, set evidence_sufficient to false and recommend "refuse" or "request_more_context."
- All scores must be on a 0.0 to 1.0 scale.
- Do not invent evidence passages, source metadata, or ranking criteria not present in the inputs.
RISK LEVEL: [RISK_LEVEL]
If RISK_LEVEL is "high," add a human_review_required flag to the output and include a reviewer_notes field explaining what a human reviewer should verify before the report is finalized.
To adapt this template, replace [QUERY] and [ANSWER] with the original user question and the model's generated response. Populate [EVIDENCE_PASSAGES] with the full set of retrieved documents, including passage IDs and text. Provide [RANKING_METHODOLOGY] as a description of how passages were ordered, including any scoring functions or criteria. If source metadata such as publication dates or author credentials is available, include it in [SOURCE_METADATA]. Set [RISK_LEVEL] to "high" for regulated domains, safety-critical applications, or audit-facing reports; otherwise use "standard." After generating the report, validate the JSON against the schema and run eval checks for orphan claims, hallucinated citations, and overconfident sufficiency assessments before storing or presenting the report.
Prompt Variables
Required inputs for the Evidence Transparency Report Generation prompt. Each placeholder must be populated before the prompt is assembled and sent. Validation notes describe how to programmatically verify the input before execution.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[QUERY_TEXT] | The original user question or search query that triggered evidence retrieval | What are the side effects of drug X compared to drug Y? | Non-empty string check. Must match the query used in the retrieval step. Reject if length < 3 characters or > 2000 characters. |
[GENERATED_ANSWER] | The final answer produced by the system that needs transparency documentation | Drug X shows higher incidence of nausea (12%) compared to drug Y (4%), but lower rates of headache. | Non-empty string check. Must be the exact output from the answer generation step. Reject if null or whitespace-only. |
[RETRIEVED_EVIDENCE_LIST] | Array of evidence passages returned by the retrieval system, each with source metadata | [{"passage_id": "src_01", "content": "...", "source_title": "...", "publication_date": "...", "authority_score": 0.85}] | Must be a valid JSON array. Each item requires passage_id, content, and source_title fields. Reject if array is empty or missing required fields. Validate content is non-empty string. |
[RANKING_METHODOLOGY] | Description of the algorithm or criteria used to rank evidence passages | Hybrid ranking: BM25 lexical score (0.4 weight) + dense embedding cosine similarity (0.6 weight), with recency decay factor of 0.95 per year. | Non-empty string. Should describe actual ranking logic used in the pipeline. Reject if generic placeholder text detected. Prefer programmatic injection from pipeline config. |
[SELECTION_CRITERIA] | Thresholds and rules that determined which evidence passages were included versus excluded | Minimum relevance score: 0.7. Maximum passages: 10. Recency cutoff: 2019-01-01. Authority minimum: 0.6. | Non-empty string or structured JSON object. Must include numeric thresholds where applicable. Validate that criteria are consistent with actual pipeline parameters. |
[CONFIDENCE_THRESHOLD] | The minimum grounding confidence score required for the answer to be considered supported | 0.75 | Float between 0.0 and 1.0. Must match the threshold configured in the grounding verification step. Reject if outside valid range or null. |
[REPORT_SCHEMA] | The required output schema for the transparency report, defining required sections and fields | {"required_sections": ["source_selection", "ranking_explanation", "conflict_analysis", "grounding_verification"], "required_fields_per_section": {...}} | Must be a valid JSON schema object. Validate against JSON Schema spec. Reject if required_sections array is empty. Each section must define its required fields. |
[DOMAIN_CONTEXT] | Optional domain-specific terminology, evidence standards, or regulatory requirements that shape the report | Pharmaceutical evidence standards: prefer peer-reviewed RCTs over observational studies. Regulatory framework: FDA guidance on real-world evidence. | Nullable string. If provided, must be non-empty. If null, the prompt should use default general-domain evidence standards. Validate domain context matches the query domain if known. |
Implementation Harness Notes
How to wire the Evidence Transparency Report prompt into a production governance or audit workflow.
This prompt is designed to be called after a query-answer pair has been generated and the full retrieval context is available. The implementation harness should treat the transparency report as a post-generation audit artifact, not a real-time user-facing response. Wire it into an asynchronous pipeline that triggers after the primary RAG response is logged, ensuring the report is generated for every high-risk or regulated interaction. The prompt expects structured inputs: the original query, the final answer, the ranked evidence list with metadata, and any conflict or sufficiency flags already computed by upstream pipeline stages.
Validation and Schema Enforcement: The prompt template includes an [OUTPUT_SCHEMA] placeholder that should be populated with a strict JSON Schema definition. After the model returns a response, run a server-side validator (e.g., jsonschema in Python, zod in TypeScript) against the output. If validation fails, implement a single retry loop that feeds the validation error back into the prompt's [CONSTRAINTS] field, instructing the model to repair the specific structural issue. Do not retry more than twice; after two failures, log the raw output and flag the report for human review. For high-stakes compliance use cases, never silently accept a malformed report.
Logging, Review, and Model Choice: Every generated transparency report should be logged immutably alongside the original query, answer, evidence set, and model version. Use a model with strong instruction-following and structured output capabilities (e.g., GPT-4o, Claude 3.5 Sonnet) for this task, as weaker models often drop required fields or hallucinate source metadata. For regulated industries, route all reports through a human review queue before they become part of an official audit trail. The review interface should display the report side-by-side with the source evidence, allowing a reviewer to accept, reject, or annotate each section. Finally, avoid calling this prompt in the hot path of a user-facing chat; its latency and token cost are justified only for audit, compliance, and governance workflows where traceability is non-negotiable.
Common Failure Modes
What breaks first when generating evidence transparency reports and how to guard against it.
Hallucinated Source Details
What to watch: The model fabricates author names, publication dates, or DOI numbers that look plausible but don't exist in the provided evidence. This is especially common when the prompt asks for structured metadata fields that are missing from the source. Guardrail: Require the model to cite exact text spans for every metadata field. Add a post-generation validator that checks each claimed identifier against the source document. If a field cannot be extracted, instruct the model to output null rather than inventing a value.
Overconfident Sufficiency Claims
What to watch: The report declares evidence is sufficient when key information is actually missing. The model conflates having some relevant passages with having complete coverage, producing a sufficiency audit that passes when it should fail. Guardrail: Include explicit sufficiency criteria in the prompt template: required fact types, minimum source count, and recency thresholds. Add an eval that spot-checks sufficiency claims by asking a separate model instance to answer the original query using only the cited evidence.
False Conflict Detection
What to watch: The model flags sources as contradictory when they actually discuss different aspects of the same topic, use different terminology for the same concept, or represent different time periods. This produces conflict reports that mislead reviewers into thinking evidence is unreliable. Guardrail: Require the model to quote the specific conflicting claims verbatim before declaring a conflict. Add a verification step that checks whether the quoted claims are semantically contradictory or merely different in scope, timeframe, or terminology.
Ranking Justification Drift
What to watch: The model's written explanation of why a source was ranked highly doesn't match the actual ranking criteria specified in the prompt. It defaults to generic heuristics like 'this source is authoritative' without connecting to the defined relevance, recency, or specificity factors. Guardrail: Structure the ranking explanation as a filled template that requires the model to address each ranking criterion explicitly. Use a separate eval prompt that scores whether the justification references the actual criteria rather than generic praise.
Orphan Claims in Traceability Tables
What to watch: The generated answer contains claims that don't appear in the traceability table, or the traceability table links claims to source spans that don't actually support them. This creates an audit trail that looks complete but fails under scrutiny. Guardrail: Run a post-generation reconciliation step: extract all claims from the answer, extract all claims from the traceability table, and flag any mismatch. For each claim-to-source link, verify the source span actually contains the claim using a separate faithfulness check.
Temporal Blindness in Freshness Reports
What to watch: The model fails to recognize that evidence is stale because it doesn't account for domain-specific freshness requirements. A two-year-old medical guideline might be dangerously outdated, while a two-year-old legal precedent might still be current. Guardrail: Include domain-specific freshness thresholds in the prompt template as explicit rules. For each evidence item, require the model to state the publication date, the domain's maximum acceptable age, and whether the evidence falls within that window before assigning a freshness score.
Evaluation Rubric
Criteria for testing the Evidence Transparency Report before shipping. Each row defines a pass standard, a failure signal, and a concrete test method.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Schema Completeness | All required fields from [OUTPUT_SCHEMA] are present and non-null where specified | Missing required fields or null values in non-nullable fields | Parse output as JSON and validate against [OUTPUT_SCHEMA] using a schema validator |
Source Selection Rationale | Each selected source includes a non-empty rationale referencing at least one of: relevance, authority, or recency | Rationale field is empty, generic, or repeats the source title without explanation | Extract all rationale fields and check length > 50 characters and contains at least one domain-specific term from [QUERY] |
Ranking Methodology Explanation | Report describes the ranking criteria used and explains why lower-ranked sources were deprioritized | Ranking explanation is missing, circular, or contradicts the actual source order | Check for presence of ranking criteria section and verify that at least one deprioritized source is explicitly mentioned with a reason |
Conflict Resolution Documentation | All detected conflicts between sources are documented with the conflicting claims and the resolution approach | Conflicts present in evidence are omitted from the report or resolved without explanation | Cross-reference source claims pairwise; if contradiction exists, verify a corresponding conflict entry in the report |
Grounding Verification Results | Report includes per-claim grounding status with specific source spans cited for grounded claims | Claims marked as grounded without source span references or hallucinated citations present | Extract all grounding assertions and verify each cited span exists in the provided [EVIDENCE] using substring match |
Unsupported Claim Flagging | All claims in [ANSWER] that lack evidence support are flagged with specific gap descriptions | Unsupported claims are omitted from the report or incorrectly marked as grounded | Compare claim list from [ANSWER] against grounding results; verify every claim appears in either grounded or unsupported sections |
Evidence Sufficiency Assessment | Report states whether evidence is sufficient, insufficient, or partially sufficient with specific gap identification | Sufficiency assessment is missing, overconfident, or contradicts the grounding results | Check for sufficiency field with one of three allowed values; if insufficient, verify at least one specific information gap is described |
Traceability to Query | Report connects evidence selection and ranking decisions back to specific aspects of [QUERY] | Report describes evidence in isolation without linking decisions to query requirements | Search report text for query terms or explicit references to query intent; require at least one connection per major evidence selection decision |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Use the base prompt template with a frontier model (GPT-4o, Claude 3.5 Sonnet) and manual review. Remove strict schema enforcement in the prompt—rely on the model's native JSON mode or structured output toggle instead of inline schema instructions. Replace the full [OUTPUT_SCHEMA] placeholder with a simplified version containing only required top-level fields. Skip the [EVIDENCE_ARTIFACTS] placeholder and pass raw retrieved passages directly.
Prompt modification
codeGenerate a transparency report for the query-answer pair below. Include: source selection criteria, ranking methodology, conflict resolution notes, and grounding verification results. Output as JSON. Query: [QUERY] Answer: [ANSWER] Evidence: [EVIDENCE_PASSAGES]
Watch for
- Missing schema checks leading to inconsistent report structure across runs
- Overly broad instructions producing narrative prose instead of structured fields
- No validation of whether cited evidence actually supports the answer
- Reports that skip conflict resolution when sources agree superficially

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us