From 4427ecae50be3bd9f6bd102919352b8d84df461d Mon Sep 17 00:00:00 2001 From: Abram Date: Mon, 22 Jul 2024 19:04:26 +0100 Subject: [PATCH] Improve Clarity and Structure of Faithfulness Explanation in Documentation (#1114) ## Description This PR enhances the documentation by improving the clarity and structure of the faithfulness explanation. The changes include: - Reorganizing the content for better flow and readability - Clarifying the process of determining the faithfulness of generated answers - Fixing grammatical errors and improving sentence structure --- docs/concepts/metrics/faithfulness.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/metrics/faithfulness.md b/docs/concepts/metrics/faithfulness.md index a220b7325..59e405160 100644 --- a/docs/concepts/metrics/faithfulness.md +++ b/docs/concepts/metrics/faithfulness.md @@ -2,7 +2,7 @@ This measures the factual consistency of the generated answer against the given context. It is calculated from answer and retrieved context. The answer is scaled to (0,1) range. Higher the better. -The generated answer is regarded as faithful if all the claims that are made in the answer can be inferred from the given context. To calculate this a set of claims from the generated answer is first identified. Then each one of these claims are cross checked with given context to determine if it can be inferred from given context or not. The faithfulness score is given by divided by +The generated answer is regarded as faithful if all the claims made in the answer can be inferred from the given context. To calculate this, a set of claims from the generated answer is first identified. Then each of these claims is cross-checked with the given context to determine if it can be inferred from the context. The faithfulness score is given by: ```{math} :label: faithfulness