This prompt is for compliance engineers, AI quality teams, and RAG pipeline architects who need auditable, rubric-based justifications for every evidence score assigned to a retrieved passage. The job-to-be-done is not just scoring evidence, but producing a traceable artifact that explains why a specific weight was chosen, linking each factor in the rubric directly to content in the source passage. Use this when downstream decisions—such as answer generation, regulatory filings, or internal audit reviews—depend on being able to replay and defend the evidence selection logic. The ideal user has a retrieval set in hand and needs to convert raw passages into a scored, justified, and reviewer-ready evidence ledger.
Prompt
Evidence Score Justification Prompt with Rubric

When to Use This Prompt
Define the job-to-be-done, the ideal user, required context, and clear boundaries for when this prompt should not be used.
Do not use this prompt for real-time, low-latency re-ranking where a simple numerical score without justification is sufficient. It is overkill for applications that only need a relevance sort order. Avoid it when the evidence passages are extremely short (e.g., single-sentence fragments) and lack enough content to support multi-factor rubric analysis. This prompt is also a poor fit when the retrieval set is uncurated web-scale noise; it assumes passages have already passed a basic relevance filter. If you need a lightweight relevance score, use the 'Query-to-Passage Relevance Scoring Prompt' instead. If you need a simple weighted score without detailed justifications, start with the 'Multi-Factor Evidence Weighting Prompt Template'.
Before using this prompt, ensure you have defined your scoring rubric with explicit factors (e.g., relevance, recency, authority, specificity) and weight ranges. The prompt template expects you to supply this rubric as part of the context. After generation, every output must pass a validation check: each justification must contain a direct quote or specific reference to the passage content. If a justification is vague or untethered from the source, the output fails. In high-stakes domains, plan for human review of a sample of scored passages to calibrate the rubric and detect systematic scoring drift. The next step is to wire this prompt into a pipeline that logs the full input, output, and reviewer decisions for audit trail generation.
Use Case Fit
Where the Evidence Score Justification Prompt with Rubric delivers auditable value and where it introduces unnecessary complexity or risk.
Good Fit: Compliance and Audit Workflows
Use when: You need traceable, factor-level justifications for why a specific evidence score was assigned. Guardrail: The rubric must be frozen before audit use; changing the rubric mid-process invalidates score comparability.
Good Fit: RAG Pipeline Debugging
Use when: Diagnosing why certain passages rank higher than others in production. Guardrail: Run the justification prompt on a sample of scored passages, not the full retrieval set, to control latency and cost.
Bad Fit: Real-Time Ranking
Avoid when: Latency budget is under 500ms or you are scoring hundreds of passages per query. Guardrail: Use lightweight numerical scoring prompts for real-time paths; reserve rubric justifications for offline audit and calibration batches.
Required Inputs
What you need: The passage text, the query, the scoring rubric with factor definitions, and any domain-specific authority or recency metadata. Guardrail: Missing metadata causes the model to guess at recency or authority, producing unjustified scores that fail audit review.
Operational Risk: Justification Drift
What to watch: Model updates or temperature settings cause the same passage to receive different justifications across runs. Guardrail: Pin the model version and set temperature to 0. Log justification hashes for drift detection in production monitoring.
Operational Risk: Over-Confidence in Scores
What to watch: The justification reads as authoritative even when the evidence is ambiguous or the rubric factor is subjective. Guardrail: Require the prompt to output a confidence flag per factor and escalate low-confidence justifications for human review before they enter an audit trail.
Copy-Ready Prompt Template
A reusable prompt that scores evidence passages against a detailed rubric and produces auditable justifications for each factor weight.
This template is designed to be dropped directly into your evidence scoring pipeline. It instructs the model to act as an evidence auditor, scoring a single passage against a configurable rubric of factors—relevance, recency, authority, specificity, and query alignment—and then justifying each score with direct quotes from the passage. The output is a structured JSON object suitable for logging, downstream filtering, and compliance review. The square-bracket placeholders allow you to inject your specific query, passage, rubric weights, and output constraints without modifying the core instruction logic.
textYou are an evidence auditor. Your task is to score a single evidence passage against a rubric and produce a detailed justification for each score. Your output must be auditable, traceable, and grounded in the passage content. ## INPUTS - Query: [QUERY] - Passage: [PASSAGE] - Rubric Factors: [RUBRIC_FACTORS] Format: A list of factors, each with a name, description, and weight (0.0 to 1.0). - Scoring Scale: [SCORING_SCALE] Format: A description of the scale, e.g., "1-5, where 1 is lowest and 5 is highest." - Output Schema: [OUTPUT_SCHEMA] Format: A valid JSON schema that the output must conform to. - Constraints: [CONSTRAINTS] Format: A list of rules the justification must follow, e.g., "Every justification must include a direct quote from the passage." - Risk Level: [RISK_LEVEL] Options: "low", "medium", "high". If "high", you must flag any score below 3 for human review. ## INSTRUCTIONS 1. For each factor in [RUBRIC_FACTORS], assign a score based on [SCORING_SCALE]. 2. Write a justification for each score. The justification must: - Reference specific content from [PASSAGE] using direct quotes. - Explain how the passage content maps to the factor's description. - Note any missing information that prevented a higher score. 3. Calculate a weighted total score by multiplying each factor score by its weight and summing the results. 4. If [RISK_LEVEL] is "high", add a `human_review_required` boolean field. Set it to `true` if any individual factor score is below 3. 5. Output ONLY a valid JSON object that strictly conforms to [OUTPUT_SCHEMA]. Do not include any text outside the JSON object. ## OUTPUT
Adapting the template: Replace each square-bracket placeholder with concrete values at runtime. For [RUBRIC_FACTORS], provide a structured list—typically injected as a serialized JSON array or a formatted markdown table. For [OUTPUT_SCHEMA], supply a strict JSON Schema definition that your application's parser expects; this is your primary defense against malformed outputs. The [CONSTRAINTS] field is where you enforce domain-specific rules, such as 'justifications must not exceed 150 words' or 'scores of 1 must explain why the passage is unusable.' For high-stakes compliance workflows, set [RISK_LEVEL] to "high" and ensure your application layer respects the human_review_required flag by routing flagged outputs to a review queue. Always validate the model's output against [OUTPUT_SCHEMA] before accepting it into your pipeline; if validation fails, retry with the error message appended to [CONSTRAINTS].
Next step: After copying this template, define your rubric factors and their weights carefully. The quality of the justification depends on how well the factor descriptions guide the model. Test with a small set of passages where you know the expected scores, and compare the model's justifications against your own reasoning. If the model consistently overweights a factor like recency when authority should dominate, adjust the factor weights or add explicit counter-instructions to [CONSTRAINTS]. For production, log every scored output—including the full prompt, passage, and model response—to create an audit trail that supports debugging and compliance review.
Prompt Variables
Required inputs for the Evidence Score Justification Prompt with Rubric. Each variable must be populated before the prompt is assembled and sent. Missing or malformed inputs are the most common cause of scoring failures in production.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[EVIDENCE_PASSAGE] | The full text of the retrieved passage to be scored and justified | The 2023 IPCC report indicates a 1.5°C warming threshold will be reached by 2030 under current emissions trajectories. | Must be non-empty string. Truncate to model context window minus 2000 tokens. Null or whitespace-only input must trigger pre-flight rejection. |
[USER_QUERY] | The original user question or information need that triggered retrieval | What is the projected timeline for reaching 1.5°C global warming? | Must be non-empty string. Preserve original phrasing without normalization. If query was rewritten for retrieval, include both original and rewritten forms in a separate [RETRIEVAL_QUERY] field. |
[RUBRIC_DIMENSIONS] | JSON array defining the scoring dimensions, their weight ranges, and evaluation criteria | [{"dimension":"relevance","weight":0.4,"criteria":"How directly does the passage address the query?"},{"dimension":"specificity","weight":0.3,"criteria":"Does the passage contain concrete data points or vague generalizations?"}] | Must be valid JSON array with 3-7 dimensions. Each dimension requires a name, weight between 0.0 and 1.0, and a criteria description string. Weights must sum to 1.0 ± 0.01. Schema validation required before prompt assembly. |
[OUTPUT_SCHEMA] | JSON Schema defining the required output structure for scores and justifications | {"type":"object","required":["overall_score","dimension_scores","justification_summary"],"properties":{"overall_score":{"type":"number","minimum":0,"maximum":1}}} | Must be valid JSON Schema draft-07. Include required fields: overall_score, dimension_scores, justification_summary, and traceability_references. Schema must be tested with a sample output before production deployment. |
[SOURCE_METADATA] | Object containing publication date, source type, and authority indicators for the passage | {"published_date":"2023-03-15","source_type":"scientific_report","authority_indicators":["peer-reviewed","intergovernmental_body"]} | Must be valid JSON object. published_date in ISO 8601 format. source_type from controlled vocabulary. authority_indicators as string array. Null allowed if metadata unavailable, but recency and authority dimensions must be marked as not-applicable in rubric output. |
[CONFIDENCE_THRESHOLD] | Minimum confidence level required before a score is considered reliable enough to use downstream | 0.7 | Must be float between 0.0 and 1.0. Scores below this threshold should trigger a low-confidence flag in output. Default to 0.6 if not specified. Values below 0.5 indicate the prompt should refuse to score and request better evidence. |
[MAX_JUSTIFICATION_LENGTH] | Token or character limit for each dimension justification to prevent verbose outputs that evade audit | 150 | Must be positive integer. Enforced in post-processing truncation if model exceeds limit. Justifications shorter than 20 tokens should trigger a completeness check. Recommended range: 80-200 tokens per dimension. |
Common Failure Modes
What breaks first when generating scored evidence with rubric-based justifications, and how to guard against it.
Justification Drift from Passage Content
What to watch: The model generates plausible-sounding justifications that reference rubric criteria but do not actually cite specific content from the passage. This produces scores that look auditable but are untethered from evidence. Guardrail: Require inline quote extraction in the justification field. Validate that every justification sentence references a specific passage span before accepting the score.
Rubric Factor Dominance
What to watch: One rubric factor such as recency or authority overwhelms all others, producing uniform scores that ignore relevance or specificity. This happens when factor descriptions are vague or the model latches onto the easiest signal. Guardrail: Add factor independence checks in evaluation. If one factor explains more than 60% of score variance across a batch, flag for rubric recalibration.
Overconfident Scoring on Ambiguous Passages
What to watch: The model assigns high-confidence scores to passages that are genuinely ambiguous, partially relevant, or contain mixed signals. The rubric forces a decision where uncertainty is the correct answer. Guardrail: Add a confidence field to the output schema. Require the model to flag passages where any single factor has low certainty. Route low-confidence scores for human review.
Position and Ordering Bias in Batch Scoring
What to watch: When scoring multiple passages in a single request, earlier passages receive systematically higher or lower scores due to anchoring effects. This distorts relative ranking when passages should be scored independently. Guardrail: Score passages one at a time in separate requests, or randomize passage order and run consistency checks. Flag batches where score distribution correlates with position.
Rubric Interpretation Inconsistency Across Runs
What to watch: The same passage scored with the same rubric produces different scores and justifications across multiple runs. This undermines auditability and makes pipeline behavior non-deterministic. Guardrail: Run each passage through scoring at least twice. Measure score variance. If variance exceeds a threshold, tighten rubric definitions with concrete examples and anchor descriptions.
Traceability Gap Between Score and Justification
What to watch: The numeric score and the text justification tell different stories. A passage receives a high relevance score but the justification describes only tangential connection. This breaks downstream trust in automated evidence selection. Guardrail: Add a traceability validator that checks whether the justification text logically supports the assigned score. Use an LLM-as-judge check: 'Does this justification explain this score?' before accepting.
Evaluation Rubric
Use this rubric to test the Evidence Score Justification Prompt before shipping. Each criterion targets a specific failure mode in auditable evidence scoring.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Factor Weight Justification | Every factor weight has a justification that references a specific passage span or metadata field | Justifications are generic, circular, or repeat the factor name without citing evidence | Parse output and check that each justification string contains at least one quote, date, or source-type reference from the input passage |
Score-Factor Consistency | The assigned numerical score for each factor is consistent with the justification text | A passage receives a high recency score but the justification notes the source is from 2019 | Extract factor scores and justifications; check for contradictions using a set of 10 hand-labeled calibration examples |
Rubric Criterion Application | Each factor score maps to the correct rubric level description provided in the prompt | The model invents its own scoring levels or ignores the provided rubric thresholds | Check that the output score labels match the rubric levels defined in [RUBRIC_DEFINITIONS]; flag any unrecognized level names |
Traceability to Source | Every justification includes a direct anchor to the passage content | Justifications describe general domain knowledge not present in the provided passage | Use an LLM-as-judge check: can the justification be verified using only the provided passage text? Fail if verification requires external knowledge |
Output Schema Compliance | Output is valid JSON matching [OUTPUT_SCHEMA] with all required fields present and correctly typed | Missing required fields, wrong types, or extra fields that violate the schema contract | Validate output against the JSON schema programmatically; reject on schema violation before running content evals |
Confidence Calibration | Confidence scores are provided where requested and reflect genuine uncertainty on ambiguous passages | Confidence is always 0.95+ even on passages with conflicting or sparse evidence | Run the prompt on a dataset with known-ambiguous passages; check that confidence scores drop below 0.85 on at least 30% of ambiguous cases |
Refusal on Empty Evidence | Prompt returns a structured refusal or null scores when [EVIDENCE_PASSAGE] is empty or contains only noise | Model hallucinates scores and justifications for empty or irrelevant input | Test with empty string, whitespace-only, and random-character inputs; expect refusal or null output per [REFUSAL_POLICY] |
Audit Trail Completeness | Output includes all fields needed for downstream audit: factor scores, justifications, source anchors, and confidence | Output omits justification for one or more factors or provides scores without traceable reasoning | Check that every factor in [SCORING_FACTORS] has a corresponding justification and anchor in the output; fail if any factor is missing |
Implementation Harness Notes
How to wire the Evidence Score Justification Prompt into a production RAG pipeline with validation, retries, and audit logging.
The Evidence Score Justification Prompt is designed to sit between your retrieval step and your answer generation or evidence selection step. In a typical RAG pipeline, you retrieve N candidate passages, then call this prompt for each passage (or batch them if your context window allows) to produce a structured justification object. The output is not just a score—it's a rubric-anchored explanation that links every factor weight to specific passage content. This makes the prompt suitable for compliance workflows where downstream reviewers need to understand why a passage was ranked above another, not just that it was.
To wire this into an application, wrap the prompt call in a function that accepts a query string, a passage object (with text, source metadata, and publication date), and a rubric configuration. The function should construct the prompt by injecting these into the [QUERY], [PASSAGE_TEXT], [PASSAGE_METADATA], and [RUBRIC] placeholders. On the output side, parse the JSON response and validate it against a strict schema: require score (number 0-1), factor_breakdown (object with required keys matching your rubric dimensions), justification (string with explicit passage references), and traceability_checks (array of objects linking each justification claim to a passage span). If validation fails, retry once with the validation error injected into [CONSTRAINTS]. If it fails again, route the passage to a human review queue rather than silently accepting a malformed score.
For model choice, use a model with strong instruction-following and JSON output capabilities—GPT-4o, Claude 3.5 Sonnet, or Gemini 1.5 Pro are appropriate. Avoid smaller models for this task because the structured justification requires precise reasoning about rubric criteria and passage content simultaneously. If you're processing high volumes, consider batching up to 5 passages per call with an array output schema, but monitor for attention degradation across passages. Log every scored passage with its raw prompt, raw response, parsed score, and validation status to a scoring audit table. This log becomes your evidence trail when a compliance reviewer asks why a particular passage was deprioritized six months ago. Do not use this prompt for real-time user-facing latency budgets under 500ms—the justification generation adds meaningful inference time.
The most common production failure mode is rubric-passage misalignment: the model justifies a score using rubric criteria that don't actually appear in the passage, producing a plausible-sounding but unfaithful justification. Your traceability_checks field is the primary defense. In your post-processing step, verify that each traceability entry's passage_span actually exists in the input passage text. If spans don't match, flag the scoring result as unreliable and escalate. A secondary failure mode is score inflation on ambiguous passages—the model assigns moderate-to-high scores to passages that sound relevant but lack concrete support. Mitigate this by including a specificity dimension in your rubric and calibrating your score thresholds against a human-labeled validation set before deployment. Run periodic eval batches comparing model-assigned scores against expert judgments, and trigger a rubric review if drift exceeds 0.15 mean absolute error.
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 with a single model call and manual review of outputs. Remove strict schema enforcement and focus on rubric clarity. Start with 5-10 evidence passages and iterate on the rubric factors until justifications read as defensible.
Simplify the output to JSON with score, justification, and rubric_factors only. Skip confidence intervals and traceability checks initially.
Watch for
- Justifications that paraphrase the rubric factor name without linking to passage content
- Scores that cluster at the midpoint (3/5) when the evidence is clearly strong or weak
- Missing traceability: justifications that cannot be mapped back to a specific sentence in the passage

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