This prompt is designed for evaluation engineers and AI pipeline architects who need to combine multiple independent dimension scores into a single, defensible quality metric. The primary job-to-be-done is automating the final step of a multi-dimensional LLM judge evaluation: taking scores for correctness, groundedness, style, and safety, and producing a weighted, normalized composite score that aligns with human holistic judgments. Use this when you have already run separate evaluation passes and need a consistent, auditable aggregation layer before feeding results into dashboards, regression tests, or model selection decisions.
Prompt
Composite Score Aggregation Prompt Template

When to Use This Prompt
Define the job, reader, and constraints for the Composite Score Aggregation Prompt Template.
Do not use this prompt as a substitute for the individual dimension evaluations themselves. It assumes the input scores are already valid and calibrated. It is not designed to re-evaluate raw outputs, detect hallucinations, or perform pairwise comparisons. The ideal user has a structured JSON array of per-dimension scores with defined scales and needs aggregation logic that handles weighting rules, dimension interaction effects (e.g., a factual error caps the maximum composite score), and normalization across judges or rubric versions. The prompt requires you to supply the raw scores, dimension definitions, weighting scheme, and any interaction or capping rules as explicit context.
Before wiring this into a production pipeline, validate the aggregated scores against a golden set of human holistic judgments. The most common failure mode is dimension weightings that don't reflect real-world quality trade-offs, leading to composites that pass the math but fail human review. Start with equal weights, calibrate against at least 50 human-scored examples, and only then introduce interaction rules or non-linear caps. If your use case involves high-stakes decisions—hiring, loan underwriting, clinical safety—add a human approval gate after aggregation and log every composite score with its input dimensions for auditability.
Use Case Fit
Where composite score aggregation works, where it breaks, and what you must have in place before trusting a single number.
Good Fit: Multi-Dimensional Quality Gates
Use when: you have independent dimension scores (factuality, completeness, tone) and need a single pass/fail or ranking signal for automated pipelines. Guardrail: validate that dimension scores are calibrated before aggregation—garbage dimensions produce garbage composites.
Bad Fit: Subjective or Single-Dimension Judgments
Avoid when: the underlying dimensions are highly subjective, uncalibrated, or when a single dimension already captures the decision. Guardrail: if dimension inter-correlation exceeds 0.8, aggregation adds complexity without signal—use the dominant dimension directly.
Required Input: Calibrated Dimension Scores
What you need: numeric or categorical scores per dimension with known scale ranges, plus documented dimension definitions. Guardrail: reject aggregation if any required dimension is missing, null, or outside its expected range—never impute silently.
Required Input: Weighting Rationale
What you need: explicit weights per dimension with a documented rationale (business priority, error cost, regulatory requirement). Guardrail: equal weights are a decision, not a default—document why each dimension carries its weight and review quarterly.
Operational Risk: Score Drift Across Judges
Risk: different LLM judges or model versions produce systematically different dimension scores, making composite scores incomparable over time. Guardrail: run calibration checks weekly against a fixed golden set; trigger recalibration when composite score distribution shifts beyond threshold.
Operational Risk: Masking Critical Failures
Risk: a high composite score can hide a catastrophic failure on a single critical dimension (e.g., safety violation with high fluency). Guardrail: implement per-dimension minimum thresholds that override the composite—any critical dimension below floor fails the entire output regardless of aggregate.
Copy-Ready Prompt Template
A reusable prompt template for aggregating multiple dimension scores into a single composite quality metric with configurable weighting, normalization, and interaction rules.
This template provides a production-ready prompt for combining individual dimension scores into a weighted composite score. It is designed for evaluation pipelines where multiple quality dimensions—such as accuracy, groundedness, instruction adherence, and format compliance—must be collapsed into a single metric for ranking, gating, or reporting. The prompt handles weight application, score normalization, dimension interaction effects, and confidence-weighted aggregation. It also requires the judge to output its aggregation rationale, making the composite score auditable and debuggable.
textYou are an evaluation aggregation judge. Your task is to combine multiple dimension scores into a single composite quality score using the provided aggregation rules. ## INPUT [INPUT] ## AGGREGATION CONFIGURATION Weights: [WEIGHTS] Normalization Rules: [NORMALIZATION_RULES] Dimension Interaction Rules: [INTERACTION_RULES] Minimum Dimension Thresholds: [MINIMUM_THRESHOLDS] ## OUTPUT SCHEMA Return a JSON object with this exact structure: { "composite_score": number, "score_range": { "min": number, "max": number }, "dimension_scores_used": [ { "dimension": string, "raw_score": number, "normalized_score": number, "weight": number, "weighted_contribution": number, "threshold_met": boolean } ], "interaction_adjustments": [ { "dimensions_involved": [string, string], "adjustment_type": string, "adjustment_value": number, "rationale": string } ], "aggregation_method": string, "confidence_level": "high" | "medium" | "low", "uncertainty_sources": [string], "aggregation_rationale": string } ## CONSTRAINTS [CONSTRAINTS] ## EXAMPLES [EXAMPLES] ## INSTRUCTIONS 1. Parse all dimension scores from the input. 2. Apply normalization rules to bring all scores to a common scale. 3. Check each dimension against its minimum threshold. Flag any dimension that falls below threshold. 4. Apply dimension interaction rules to adjust scores where dimensions influence each other. 5. Compute the weighted composite score using the formula: sum(normalized_score * weight) + interaction_adjustments. 6. If any required dimension is missing or below threshold, set confidence_level to "low" and explain in uncertainty_sources. 7. If interaction rules produce adjustments exceeding [MAX_ADJUSTMENT_CAP], cap the adjustment and note it in the rationale. 8. Output the result in the exact JSON schema specified above.
To adapt this template, replace each square-bracket placeholder with your specific configuration. The [WEIGHTS] placeholder should contain a mapping of dimension names to their numeric weights, ensuring they sum to 1.0 or 100. The [NORMALIZATION_RULES] placeholder defines how to map different score ranges to a common scale—for example, converting a 1–5 Likert score and a 0–100 percentage to a unified 0–1 range. The [INTERACTION_RULES] placeholder specifies how dimensions affect each other, such as capping the composite score when groundedness falls below a threshold regardless of other dimension scores. The [MINIMUM_THRESHOLDS] placeholder defines per-dimension floor values below which the composite score should be penalized or invalidated. The [CONSTRAINTS] placeholder should include output limits like maximum adjustment caps, required dimension presence, and rounding precision. The [EXAMPLES] placeholder should contain at least two worked examples showing input dimension scores, the aggregation calculation, and the expected output JSON. Before deploying, validate this prompt against a golden dataset of human holistic judgments to calibrate weights and thresholds, and implement automated checks that the output JSON matches the schema exactly.
Prompt Variables
Required inputs for the Composite Score Aggregation Prompt. Each placeholder must be populated before the prompt is sent. Validation notes describe how to verify the input is well-formed before execution.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[DIMENSION_SCORES] | Array of dimension names, scores, and optional confidence values produced by upstream evaluators | [{"dimension": "factual_accuracy", "score": 0.85, "confidence": 0.92}, {"dimension": "completeness", "score": 0.72, "confidence": 0.88}] | Schema check: array of objects with required 'dimension' (string) and 'score' (float 0.0-1.0) fields. Confidence field optional but recommended. Reject if array is empty or scores are out of range. |
[WEIGHTING_SCHEMA] | Defines how much each dimension contributes to the final composite score | {"factual_accuracy": 0.5, "completeness": 0.3, "conciseness": 0.2} | Schema check: object mapping dimension names to float weights. Sum of all weights must equal 1.0 within 0.01 tolerance. Reject if any weight is negative or exceeds 1.0. Warn if dimension names don't match [DIMENSION_SCORES] keys. |
[AGGREGATION_METHOD] | Specifies the mathematical method for combining dimension scores | weighted_arithmetic_mean | Enum check: must be one of 'weighted_arithmetic_mean', 'weighted_geometric_mean', 'harmonic_mean', 'minimum', 'custom_formula'. Reject unrecognized values. If 'custom_formula', [CUSTOM_AGGREGATION_RULE] becomes required. |
[NORMALIZATION_CONFIG] | Rules for normalizing scores before aggregation when dimensions use different scales | {"method": "min_max", "target_range": [0.0, 1.0], "per_dimension_bounds": {"factual_accuracy": [0.0, 1.0], "completeness": [0.0, 5.0]}} | Schema check: object with required 'method' field (enum: 'min_max', 'z_score', 'none'). If 'none', skip normalization. If 'min_max', 'per_dimension_bounds' is required. Reject if target_range min equals max. Warn if bounds don't cover all dimensions in [DIMENSION_SCORES]. |
[DIMENSION_INTERACTION_RULES] | Defines how dimensions affect each other, such as penalties, bonuses, or gating conditions | [{"type": "gate", "condition": "factual_accuracy < 0.5", "effect": "composite_score = min(composite_score, 0.3)"}, {"type": "penalty", "condition": "completeness < 0.4 AND conciseness < 0.4", "effect": "multiply composite_score by 0.8"}] | Schema check: array of objects with required 'type' (enum: 'gate', 'penalty', 'bonus', 'cap', 'floor'), 'condition' (string expression referencing dimension names), and 'effect' (string expression). Reject if condition references dimensions not in [DIMENSION_SCORES]. Parse-check condition expressions for syntax validity. |
[OUTPUT_SCHEMA] | Defines the required structure of the aggregation output | {"composite_score": "float", "dimension_contributions": "array", "normalization_applied": "boolean", "interactions_triggered": "array", "confidence_interval": "object"} | Schema check: valid JSON schema object. Must include 'composite_score' as required field. Reject if schema is malformed JSON. Warn if schema doesn't include confidence or justification fields when audit trail is needed. |
[HUMAN_HOLISTIC_BENCHMARK] | Optional reference scores from human evaluators for calibration validation | [{"item_id": "eval_001", "human_composite": 0.78, "human_breakdown": {"factual_accuracy": 0.82, "completeness": 0.75, "conciseness": 0.70}}] | Schema check: array of objects with required 'item_id' (string) and 'human_composite' (float 0.0-1.0). 'human_breakdown' field optional. Reject if human_composite out of range. Warn if fewer than 5 benchmark items provided for statistical significance. Null allowed if calibration not required for this run. |
[CONSTRAINTS] | Hard limits and rules the aggregation must respect | {"min_composite_threshold": 0.0, "max_composite_threshold": 1.0, "require_all_dimensions_present": true, "allow_partial_aggregation": false, "confidence_threshold": 0.7} | Schema check: object with boolean and numeric fields. Reject if min_composite_threshold >= max_composite_threshold. If 'require_all_dimensions_present' is true and 'allow_partial_aggregation' is true, flag as contradictory. Confidence threshold must be between 0.0 and 1.0. |
Implementation Harness Notes
How to wire the composite score aggregation prompt into an evaluation pipeline with validation, retries, and human review triggers.
The composite score aggregation prompt is not a standalone artifact—it is a processing step that sits between dimension-level judges and the final quality metric your application consumes. In a typical harness, you run multiple dimension-specific evaluators first (e.g., factual accuracy, groundedness, instruction adherence), collect their individual scores and justifications, then feed that structured output into this aggregation prompt. The harness is responsible for assembling the input payload, enforcing the aggregation schema, validating the output, and deciding what happens when aggregation fails or produces anomalous results.
Wire this prompt into your evaluation pipeline as a post-scoring aggregation stage. The input should be a structured JSON object containing dimension scores, optional weights, and any dimension-level justifications or confidence flags. Use a strict output schema that requires the final composite score, the aggregation method used, a breakdown of how each dimension contributed, and a flag for dimension interactions that influenced the final score. Validate the output programmatically before accepting it: check that the composite score falls within the expected range, that all required dimensions appear in the breakdown, that weights sum to 1.0 (or are explicitly marked as unnormalized), and that any interaction flags reference dimensions that actually exist in the input. If validation fails, retry with the same input and a stronger constraint instruction appended to the prompt—but cap retries at three attempts before escalating to a human reviewer or falling back to a simple weighted average computed in application code.
For high-stakes evaluation pipelines—such as model release gates, compliance audits, or customer-facing quality guarantees—add a human review trigger when the aggregation output shows high variance across dimensions, when dimension interactions are flagged as significant, or when the composite score falls within a narrow boundary region near a critical threshold. Log every aggregation call with the input dimension scores, the raw aggregation output, the validation result, and any retry attempts. This trace data is essential for debugging aggregation drift, recalibrating weights, and proving to auditors that your composite scores are reproducible. Avoid using this prompt for real-time scoring in latency-sensitive paths unless you've benchmarked the aggregation step and confirmed it meets your SLA; in those cases, consider caching aggregation results for common dimension score patterns or pre-computing composite scores for known input distributions.
Common Failure Modes
Composite score aggregation fails silently when dimension interactions, weight drift, or normalization errors hide real quality problems. These are the most common failure modes and how to catch them before scores ship.
Weight Drift Over Time
What to watch: Dimension weights that made sense at design time become misaligned with actual business priorities as product requirements evolve. The composite score looks stable but rewards the wrong behaviors. Guardrail: Version weights alongside the rubric, log weight changes with rationale, and run quarterly weight-audit prompts that compare aggregated rankings against human holistic judgments.
Compensating Dimension Scores
What to watch: A high score in one dimension masks a critical failure in another, producing an acceptable composite score for an unacceptable output. For example, perfect formatting hides hallucinated facts. Guardrail: Add a minimum-threshold rule per critical dimension before aggregation. If any safety or factuality dimension falls below the floor, the composite score is capped or the output is rejected regardless of other scores.
Normalization Distortion
What to watch: When dimensions use different native scales (1-5 vs. 0-100), naive normalization compresses variance or amplifies noise. A dimension with narrow score spread can dominate after normalization if its standard deviation is small. Guardrail: Log raw dimension scores alongside normalized values, monitor per-dimension variance, and validate that normalized weights reflect intended influence by running ablation tests that remove one dimension at a time.
Correlated Dimension Double-Counting
What to watch: Two rubric dimensions that measure overlapping qualities (e.g., clarity and conciseness) inflate the composite score because the same strength or weakness is counted twice. Guardrail: Run inter-dimension correlation analysis on a sample of scored outputs. If Pearson correlation exceeds 0.7 between any pair, merge them or add an explicit redundancy penalty term in the aggregation formula.
Aggregation Masking Judge Inconsistency
What to watch: Individual dimension scores drift due to judge miscalibration, but the composite score stays in range because errors cancel out. You ship a broken rubric without knowing it. Guardrail: Track per-dimension score distributions independently over time. Set alerts when any dimension's mean shifts by more than 0.5 standard deviations from the calibration baseline, even if the composite score looks stable.
Missing Human Holistic Validation
What to watch: The aggregation formula produces mathematically consistent scores that don't match how humans actually rank output quality. Engineers trust the numbers while users experience poor results. Guardrail: Run a monthly alignment check where human reviewers rank 20-30 outputs holistically. Compare human rank order against composite score rank order using Spearman correlation. If correlation drops below 0.8, trigger a weight recalibration cycle.
Evaluation Rubric
Criteria for testing the composite score aggregation prompt before shipping. Each row defines a pass standard, a failure signal, and a concrete test method.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Weighted Sum Accuracy | Aggregated score equals the sum of (dimension_score * weight) for all dimensions, rounded to the specified precision. | Aggregated score deviates from manual calculation by more than 0.01. | Run 20 test cases with known dimension scores and weights. Assert computed aggregate matches expected value within tolerance. |
Normalization Consistency | Scores from different scales (e.g., 1-5 and 1-10) are normalized to a common scale before aggregation, with normalization method documented in output. | Raw scores from different scales are averaged directly without normalization, producing a meaningless aggregate. | Provide dimension scores on mixed scales. Check that output includes normalized values and that the aggregate uses normalized values, not raw inputs. |
Weight Sum Validation | The sum of all dimension weights equals 1.0 (or 100). If weights don't sum to 1.0, the prompt either normalizes them or flags an error. | Weights summing to 0.7 or 1.3 are accepted without adjustment or warning, producing a biased aggregate. | Supply weight sets that sum to 0.5, 1.0, and 1.5. Verify the output either normalizes to 1.0 or returns a validation error for non-1.0 sums. |
Missing Dimension Handling | When a dimension score is null or missing, the prompt either excludes that dimension and re-weights remaining dimensions, or flags the gap and refuses to aggregate. | Missing dimension is treated as zero, pulling the aggregate score down. Or the prompt hallucinates a score for the missing dimension. | Provide input with [DIMENSION_SCORES] missing one dimension. Check that output either re-weights or returns an error. Assert no hallucinated score is present. |
Dimension Interaction Flagging | When dimensions are known to interact (e.g., safety failure should cap overall score), the prompt applies the interaction rule and documents it in the output. | A critical safety score of 0 is averaged with high scores on other dimensions, producing a passing aggregate that masks the failure. | Provide a case where [SAFETY_SCORE] is 0 and other scores are high. Assert the aggregate is capped at a failing level and the interaction rule is cited in the output rationale. |
Human Holistic Alignment | Aggregated scores correlate with human holistic judgments at Spearman's ρ ≥ 0.8 on a held-out calibration set of 50 examples. | Aggregated scores rank-order items differently than human holistic judgments, with ρ < 0.6. | Run the prompt on a calibration set with human holistic scores. Compute Spearman's rank correlation. Flag if below 0.8 for investigation. |
Output Schema Compliance | Output is valid JSON matching [OUTPUT_SCHEMA], including fields for aggregate_score, dimension_contributions, normalization_method, and warnings. | Output is missing required fields, contains extra untyped fields, or is not parseable JSON. | Validate output against [OUTPUT_SCHEMA] using a JSON schema validator. Assert all required fields present and no additional properties unless explicitly allowed. |
Rationale Traceability | Output includes a breakdown showing each dimension's raw score, normalized score, weight, and contribution to the final aggregate. | Output provides only a final number with no explanation of how it was computed, making auditing impossible. | Inspect output for a dimension_contributions array or equivalent. Assert each input dimension appears with its weight and contribution value. |
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 aggregation prompt and a simple weighted average. Use a single LLM call with all dimension scores and weights passed inline. Skip normalization logic and let the model handle edge cases heuristically. Accept a free-text rationale alongside the composite score.
Prompt snippet
codeYou are an evaluation aggregator. Given the following dimension scores and weights, compute a weighted composite score and explain your reasoning. Dimensions: [DIMENSION_SCORES] Weights: [WEIGHTS] Return a JSON object with "composite_score" (0.0-1.0) and "rationale".
Watch for
- Inconsistent weighting application across runs
- Missing handling for missing or null dimension scores
- No guardrails against score range violations
- Rationale quality drift without structured justification requirements

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