This prompt is for platform engineers building automated verification pipelines that must handle missing evidence gracefully. When a claim enters the pipeline and the evidence retrieval step returns zero results, an empty source set, or results too weak to evaluate, the pipeline must not crash, silently skip the claim, or fabricate a verdict. This prompt produces a structured null result with a clear status code, fallback routing instructions, and error recovery metadata. Use it as the catch-all handler at the end of your evidence retrieval step, before the verification scoring step. It assumes you have already attempted retrieval and have a set of sources to evaluate, even if that set is empty or insufficient.
Prompt
Verification Pipeline Null Handling Prompt Template

When to Use This Prompt
Defines the exact job this prompt performs and the pipeline conditions that trigger it.
The ideal user is a verification pipeline operator or platform engineer who has already built the retrieval and scoring stages and now needs to close the gap where evidence simply doesn't exist. The required context includes the original claim text, the retrieval query used, the list of sources returned (or an empty array), and any retrieval metadata such as search duration or index scope. Without this context, the prompt cannot produce a meaningful null result because it cannot distinguish between 'we didn't look' and 'we looked and found nothing.' The output must include a machine-readable status field, a human-readable explanation, and routing instructions that downstream orchestration logic can act on without additional parsing.
Do not use this prompt when evidence exists but is contradictory, low-quality, or outdated. Those conditions require the Evidence Sufficiency Threshold Enforcement or Contradiction Detection prompts, which produce scored verdicts rather than null declarations. Do not use this prompt as a substitute for proper error handling in your retrieval codeāif the retrieval API itself fails with a 5xx error, that's an infrastructure problem, not a null-evidence problem. This prompt is specifically for the case where retrieval succeeds but returns nothing useful. Wire it into your pipeline as the final step in the evidence retrieval stage, with a conditional gate that routes to this prompt only when the source set is empty or below a minimum quality threshold you define upstream.
Before deploying, test this prompt against three scenarios: an empty source array, a source array containing only irrelevant documents, and a source array where the retrieval system returned an error message instead of documents. Each scenario should produce a distinct but consistently structured output. If your pipeline cannot distinguish between these cases in its routing logic, add a pre-processing step that normalizes the retrieval result before it reaches this prompt. The next section provides the exact template and placeholders you'll need to implement this handler.
Use Case Fit
Where this prompt works and where it does not. Use it to prevent silent failures in verification pipelines when evidence is missing.
Good Fit: Automated Verification Pipelines
Use when: you have a production pipeline that extracts claims and matches them to evidence, and you need a structured fallback when no evidence is found. Guardrail: wire the null output directly into your pipeline's routing logic so unsupported claims never silently pass as verified.
Bad Fit: Real-Time User-Facing Chat
Avoid when: a user is waiting for an immediate conversational answer. This prompt produces structured JSON for machine consumption, not a natural-language explanation. Guardrail: use a separate user-facing disclosure prompt to translate the null result into plain language when needed.
Required Input: Exhausted Evidence Context
Use when: you have already searched your knowledge base, retrieved documents, or queried APIs and found no supporting or contradicting evidence. Guardrail: do not call this prompt before evidence retrieval is complete. Premature null declarations create audit gaps.
Required Input: Claim with Provenance
Use when: you can provide the original claim text, its source document identifier, and the search scope that was exhausted. Guardrail: missing provenance makes the null result unauditable. Validate input completeness before invoking the prompt.
Operational Risk: Silent Null Propagation
Risk: a pipeline that receives a null result but continues processing as if verification succeeded. Guardrail: add a post-processing validator that checks for the null status field and routes to a dead-letter queue or human review before any downstream action.
Operational Risk: Premature Exhaustion
Risk: declaring evidence exhausted before all configured sources have been queried. Guardrail: attach a search-scope manifest to each prompt invocation and validate that all required sources were consulted before accepting the null result.
Copy-Ready Prompt Template
A copy-ready prompt that returns a structured null result when evidence is missing or insufficient, preventing silent failures in your verification pipeline.
This prompt is the null-handling step in a verification pipeline. It expects a single claim and an array of sources, and its only job is to determine whether the available evidence is sufficient to proceed. If evidence is missing, contradictory, or too weak, the prompt returns a structured null result with a reason code and fallback routing instructions. This prevents the pipeline from treating 'no evidence' as 'false' or from passing a claim to a downstream verifier that will hallucinate a confidence score. Wire this prompt immediately after evidence retrieval and before any claim-verdict prompt.
textYou are a verification pipeline guard. Your only task is to decide whether the provided sources contain enough evidence to attempt verification of the claim. You do not verify the claim. You only assess evidence sufficiency. INPUT: - Claim: [CLAIM_TEXT] - Sources: [SOURCES_ARRAY] - Minimum Evidence Threshold: [MIN_THRESHOLD_CONFIG] SOURCES_ARRAY format: Each source object has `id`, `text`, `date`, and `authority` fields. MIN_THRESHOLD_CONFIG format: - `min_corroborating_sources`: integer (default 1) - `require_recent`: boolean (default false) - `min_authority_level`: string ("low" | "medium" | "high") RULES: 1. If zero sources contain information relevant to the claim, return NULL_EVIDENCE. 2. If sources exist but none directly address the claim's core assertion, return NULL_EVIDENCE. 3. If sources address the claim but fall below the minimum evidence threshold, return INSUFFICIENT_EVIDENCE with a list of specific threshold violations. 4. If sources are contradictory and no clear preponderance exists, return CONTRADICTORY_EVIDENCE. 5. Only return SUFFICIENT_EVIDENCE if the threshold is met and sources are consistent. OUTPUT_SCHEMA (strict JSON): { "status": "SUFFICIENT_EVIDENCE" | "NULL_EVIDENCE" | "INSUFFICIENT_EVIDENCE" | "CONTRADICTORY_EVIDENCE", "claim_id": "string", "evidence_summary": { "relevant_source_count": integer, "corroborating_source_count": integer, "contradicting_source_count": integer, "best_source_id": "string | null", "best_source_authority": "string | null" }, "threshold_violations": [ { "rule": "string", "expected": "string", "actual": "string" } ], "fallback_action": "PROCEED_TO_VERIFICATION" | "ROUTE_TO_HUMAN_REVIEW" | "FLAG_AS_UNVERIFIABLE" | "REQUEST_ADDITIONAL_SOURCES", "fallback_rationale": "string" } CONSTRAINTS: - Never return a verification verdict (true/false/supported/refuted). - Never invent evidence or sources. - If the claim references a document section not present in sources, treat as NULL_EVIDENCE. - If sources are present but irrelevant, explain why they don't match. - Always include specific threshold violations when returning INSUFFICIENT_EVIDENCE.
Adapt this template by adjusting MIN_THRESHOLD_CONFIG to match your domain's evidence standards. For legal claims, set min_corroborating_sources to 2 and min_authority_level to "high." For news verification, set require_recent to true and add a max_source_age_days field. For internal knowledge base checks, you may lower the threshold to 1 and remove the authority requirement. The fallback_action field should map to your pipeline's actual routing logic: a queue name, a webhook, or a status flag in your verification database. Test this prompt with edge cases including empty source arrays, sources in a different language, sources that mention the topic but not the specific claim, and claims that require numerical evidence when only textual sources are provided.
Prompt Variables
Inputs the Verification Pipeline Null Handling Prompt Template needs to produce a structured null result with fallback routing and error recovery instructions. Each placeholder must be validated before the prompt is assembled to prevent silent null propagation.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[CLAIM] | The factual assertion to be verified against available evidence | The company reported a 34% increase in Q3 revenue | Required. Must be a single atomic claim. Reject if empty, multi-claim, or purely subjective. Parse check: contains at least one verifiable predicate. |
[EVIDENCE_SET] | The collection of retrieved sources, documents, or passages available for verification | {"source_1": "Q3 earnings report page 4...", "source_2": "Press release dated Oct 15..."} | Required. Must be a non-empty array or object. Validate structure: each source must have content and identifier fields. Null allowed only if retrieval failed entirely; trigger fallback routing. |
[RETRIEVAL_METADATA] | Context about how evidence was obtained, including search queries, source count, and retrieval timestamp | {"queries_used": ["Q3 revenue 2024"], "sources_retrieved": 2, "retrieval_timestamp": "2024-11-15T10:30:00Z"} | Required. Must include retrieval_timestamp and sources_retrieved count. Validate: sources_retrieved must match length of [EVIDENCE_SET]. Missing metadata triggers evidence exhaustion check. |
[VERIFICATION_POLICY] | Organizational rules for null handling, fallback routing, and minimum evidence thresholds | {"min_sources_required": 2, "null_fallback_action": "ROUTE_TO_HUMAN_REVIEW", "max_retries": 3} | Required. Must define min_sources_required, null_fallback_action, and max_retries. Validate enum: null_fallback_action must be one of ROUTE_TO_HUMAN_REVIEW, MARK_UNVERIFIABLE, or RETRY_WITH_EXPANDED_SEARCH. |
[PIPELINE_STATE] | Current execution context including retry count, previous null results, and pipeline stage | {"retry_count": 1, "previous_null_result": true, "pipeline_stage": "EVIDENCE_MATCHING"} | Required. retry_count must be integer >= 0. If retry_count >= max_retries from [VERIFICATION_POLICY], force fallback routing. Validate: pipeline_stage must match expected stage enum. |
[OUTPUT_SCHEMA] | The expected structure for the null result response, including required fields and types | {"verdict": "UNVERIFIABLE", "confidence": null, "evidence_gap_summary": "string", "fallback_route": "string", "error_recovery_instructions": "string"} | Required. Must define verdict, confidence, evidence_gap_summary, fallback_route, and error_recovery_instructions fields. Validate: confidence must be explicitly null for null results, not omitted or zero. |
[FALLBACK_ROUTES] | Mapping of null conditions to specific routing destinations or escalation paths | {"NO_EVIDENCE_RETRIEVED": "human_review_queue", "INSUFFICIENT_EVIDENCE": "expanded_search", "MAX_RETRIES_EXCEEDED": "unverifiable_log"} | Required. Must map each null condition to a valid route. Validate: all route values must exist in the pipeline infrastructure. Missing route mapping triggers default ROUTE_TO_HUMAN_REVIEW. |
[ERROR_RECOVERY_INSTRUCTIONS] | Step-by-step instructions for the pipeline to execute when a null result is produced | ["Log null result with trace ID", "Increment retry counter", "Check retry_count against max_retries", "Execute fallback route", "Notify monitoring system"] | Required. Must be an ordered array of actionable steps. Validate: each step must be executable by the pipeline harness. Missing recovery instructions trigger pipeline halt and alert. |
Implementation Harness Notes
How to wire the Verification Pipeline Null Handling Prompt into a production application with validation, retries, and graceful degradation.
The Verification Pipeline Null Handling Prompt Template is designed as a safety net within a broader verification orchestration system. It should not be the primary prompt for claim verification. Instead, it acts as a catch-all when an upstream verification step fails to produce a valid structured output, returns a null or empty result, or throws an exception. The harness must intercept these failure states and route them to this prompt, providing the original claim, the failed step's context, and the raw error or empty response. This ensures that a pipeline failure does not result in a silent null, which could be misinterpreted as a negative verification result downstream.
To wire this into an application, implement a validation layer immediately after every model call in your verification pipeline. This layer should check for a valid JSON structure, the presence of required fields like verdict or status, and non-null values for critical fields. If validation fails, the harness should construct a new request using this Null Handling Prompt Template, populating the [ORIGINAL_CLAIM], [FAILED_PIPELINE_STEP], and [RAW_ERROR_CONTEXT] placeholders. The model should be instructed to produce a structured null_result object with a fallback_routing field (e.g., HUMAN_REVIEW, RETRY_WITH_EXPANDED_SOURCES, MARK_UNVERIFIABLE). The application must then parse this output and execute the specified routing logic, such as placing the claim into a review queue or triggering a search for additional evidence. Log every instance of this fallback being triggered, including the raw error and the model's routing decision, to create an audit trail and identify systemic pipeline weaknesses.
For high-stakes verification domains, never allow the system to automatically mark a claim as 'unverified' or 'false' based on a pipeline error. The harness must enforce a human review step for any claim routed to HUMAN_REVIEW by this prompt. Implement a retry budget: if the null-handling prompt itself fails validation, retry once with a lower temperature setting. If it fails again, escalate the entire claim payload to an operations alerting channel and log the failure as a critical incident. Model choice matters here; use a highly reliable, instruction-following model with strong JSON mode capabilities for this recovery step, as it must produce a predictable routing decision under degraded conditions. Avoid using a smaller, faster model for this task, as the cost of a misrouted null result is far higher than the latency or token cost of a more capable model.
Expected Output Contract
Fields, types, and validation rules for the structured null result produced when a verification pipeline cannot find evidence for a claim. Use this contract to build downstream parsers, retry logic, and audit trails.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
claim_id | string | Must match the input claim identifier exactly; reject if missing or mismatched | |
verification_status | enum: UNSUPPORTED | UNVERIFIABLE | PENDING_REVIEW | Must be one of the allowed enum values; reject UNSUPPORTED if evidence was found but contradicted | |
null_reason | string | Must be non-empty and from the allowed taxonomy: NO_EVIDENCE_FOUND, EVIDENCE_EXHAUSTED, SOURCE_SET_INSUFFICIENT, SEARCH_ERROR, TIMEOUT | |
evidence_search_scope | object | Must contain sources_queried (array, min 1 item) and query_timestamp (ISO 8601); reject if sources_queried is empty | |
confidence_score | number | Must be between 0.0 and 1.0; reject if > 0.3 when status is UNSUPPORTED (confidence suppression check) | |
fallback_routing | object | Must contain target (string) and priority (enum: LOW, MEDIUM, HIGH, CRITICAL); reject if target is empty | |
retry_instruction | string | If present, must be one of: RETRY_WITH_EXPANDED_SCOPE, RETRY_WITH_ALTERNATE_SOURCES, DO_NOT_RETRY, ESCALATE_TO_HUMAN | |
audit_trail_reference | string | Must be a valid UUID or trace ID linking to the full evidence search log; reject if format does not match UUID v4 or trace ID pattern |
Common Failure Modes
What breaks first when handling null evidence in verification pipelines and how to guard against silent failures.
Silent Null Propagation
What to watch: The model returns a generic 'no evidence found' string instead of a structured null result, causing downstream parsers to treat it as a valid verdict. Guardrail: Enforce a strict output schema with a required verification_status enum and a nullable evidence field. Validate the schema before any downstream routing.
Confidence Inflation on Empty Sets
What to watch: The model assigns moderate confidence to a claim when the evidence set is empty, confusing 'absence of contradiction' with 'presence of support.' Guardrail: Add a pre-processing check that counts evidence items. If the count is zero, bypass the confidence model and force confidence: null with a UNVERIFIABLE status.
Fallback Routing Collapse
What to watch: A null result triggers a fallback to a human review queue, but the payload is missing the original claim context, forcing the reviewer to redo the search. Guardrail: Package the original claim, the search query used, the empty result set, and the exhaustion declaration into a structured review packet before routing.
Retry Loop on Transient Nulls
What to watch: A temporary retrieval failure returns null, and the pipeline retries indefinitely, wasting resources and delaying the batch. Guardrail: Distinguish between 'evidence exhausted' (permanent null) and 'retrieval error' (transient null) with distinct status codes. Set a max retry of 2 for transient errors, then escalate.
Null vs. Empty String Confusion
What to watch: The model returns an empty string for a missing evidence field, which passes a non-null check and gets stored as a valid citation. Guardrail: Use a post-processing validator that explicitly checks for empty strings, whitespace-only strings, and placeholder text like 'N/A' in required fields, coercing them to true nulls.
Missing Exhaustion Declaration
What to watch: The pipeline marks a claim as unverified but provides no record that the search was actually completed, making audits impossible. Guardrail: Require an exhaustion_declaration object in the output containing sources_consulted, search_scope, and a boolean search_complete flag. Fail validation if missing.
Evaluation Rubric
Criteria for testing the Verification Pipeline Null Handling prompt before production deployment. Each row targets a specific failure mode common in evidence-gap scenarios.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Null Result Structure Compliance | Output matches [OUTPUT_SCHEMA] exactly when evidence is missing; all required fields present with null or empty defaults | Missing required fields, extra fields, or malformed JSON when evidence set is empty | Schema validation against [OUTPUT_SCHEMA] with empty evidence input; parse check on JSON structure |
Silent Null Prevention | Output explicitly contains a status field set to UNVERIFIABLE or EVIDENCE_GAP; no field implies success when evidence is absent | Status field missing, set to VERIFIED, or contains ambiguous language like 'likely true' without evidence | Assert status field exists and equals one of [ALLOWED_NULL_STATUSES]; grep for forbidden confidence language |
Fallback Routing Instruction Presence | Output includes a non-empty [FALLBACK_ROUTING] field with a valid target queue, escalation path, or human review flag | [FALLBACK_ROUTING] is null, empty string, or contains a default catch-all with no specific routing logic | Check [FALLBACK_ROUTING] is populated and matches one of [VALID_ROUTING_TARGETS]; verify routing target exists in pipeline config |
Error Recovery Metadata Completeness | Output contains [ERROR_RECOVERY] object with retry_count, last_error_message, and suggested_remediation populated | [ERROR_RECOVERY] is null, retry_count is negative, or suggested_remediation is empty when evidence retrieval failed | Validate [ERROR_RECOVERY] schema; assert retry_count >= 0; check suggested_remediation string length > 20 characters |
Confidence Score Suppression | Confidence score is explicitly set to 0.0 or null when no evidence is found; no default confidence value leaks through | Confidence score > 0.0 when evidence array is empty; score field missing entirely | Assert confidence_score <= 0.0 or is null when evidence_count == 0; check for hardcoded default values in prompt output |
Evidence Gap Documentation | Output includes [EVIDENCE_GAP_SUMMARY] describing what was searched, sources consulted, and why evidence is insufficient | [EVIDENCE_GAP_SUMMARY] is null, contains only 'no evidence found', or lacks search scope description | Check [EVIDENCE_GAP_SUMMARY] contains search_scope, sources_consulted count, and insufficiency_rationale; minimum 50 characters |
Pipeline Resilience Under Timeout | Prompt produces valid null output within [TIMEOUT_MS] when evidence retrieval times out; no unhandled exceptions or partial outputs | Output is truncated JSON, throws timeout error without fallback, or returns 200 with empty body | Simulate evidence retrieval timeout; assert response time < [TIMEOUT_MS] + buffer; validate output parses as complete JSON |
Retry Exhaustion Handling | After [MAX_RETRIES] attempts, output includes retry_exhausted: true and escalation flag set; no infinite retry loop | Output attempts retry beyond [MAX_RETRIES], retry_exhausted flag is false after max attempts, or no escalation triggered | Set evidence source to consistently fail; count retry attempts in logs; assert retry_exhausted == true after [MAX_RETRIES] |
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
Start with the base prompt but remove strict schema enforcement. Replace the structured JSON output requirement with a simpler key-value format. Use a single null_reason field instead of the full error recovery object.
codeIf evidence is missing for [CLAIM], respond with: null_reason: [one-line explanation] fallback_action: [SKIP|FLAG|QUEUE]
Watch for
- Model silently inventing evidence instead of returning null
- Inconsistent null_reason formatting across runs
- No distinction between 'no evidence found' and 'search failed'
- Missing confidence suppression on null results

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