Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: update managed ragas-faithfulness-evaluator with proper scoring and prompt details (#13226)

marliessophie59d0e620f0b8
diff --git a/worker/src/constants/managed-evaluators.json b/worker/src/constants/managed-evaluators.json
index 1ab4890be5..f60c18ef9d 100644
--- a/worker/src/constants/managed-evaluators.json
+++ b/worker/src/constants/managed-evaluators.json
@@ -173,6 +173,19 @@
},
"prompt": "Given a question and an answer, analyze the complexity of each sentence in the answer. Break down each sentence into one or more fully understandable statements. Ensure that no pronouns are used in any statement.\nQuestion: {{question}}\nAnswer: {{answer}}"
},
+ {
+ "id": "cmal6wart010lynrdtpv6olfv2",
+ "created_at": "2026-04-17T10:00:00.000Z",
+ "updated_at": "2026-04-17T10:00:00.000Z",
+ "name": "Faithfulness",
+ "partner": "ragas",
+ "version": 2,
+ "outputDefinition": {
+ "score": "Based on the claim analysis provided, give a single score from 0 to 1 (where 1 is perfectly faithful and 0 is entirely unsupported) representing the overall proportion of the answer that is grounded in the context. Output only the number",
+ "reasoning": "One sentence reasoning for the score"
+ },
+ "prompt": "You are an expert evaluator. Your task is to determine the Faithfulness of a generated answer based on a provided context.\n\nFollow these steps exactly:\n1. Deconstruction: Break the \"Answer\" down into a list of atomic, self-contained statements. Do not use pronouns; replace them with the actual subjects.\n2. Verification: For each statement, check if it is supported by the \"Context.\"\n3. Verdict: Assign a 1 if the statement is directly supported by the context, or a 0 if it is not supported or contradicted. Provide a brief reason for each.\n4. Calculation: Calculate the final faithfulness score as: Total Verdicts of 1 divided by Total Number of Statements.\n\nInput Data:\nContext: {{context}}\nAnswer: {{answer}}"
+ },
{
"id": "cmal6wart010lynrdtpv6olag",
"created_at": "2025-05-20T18:16:12.000Z",