Skip to content

Commit 78b1796

Browse files
authored
Update answer_relevance.md (#832)
Typo
1 parent 864c803 commit 78b1796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/concepts/metrics/answer_relevance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The evaluation metric, Answer Relevancy, focuses on assessing how pertinent the generated answer is to the given prompt. A lower score is assigned to answers that are incomplete or contain redundant information and higher scores indicate better relevancy. This metric is computed using the `question`, the `context` and the `answer`.
44

5-
The Answer Relevancy is defined as the mean cosine similartiy of the orginal `question` to a number of artifical questions, which where generated (reverse engineered) based on the `answer`:
5+
The Answer Relevancy is defined as the mean cosine similartiy of the original `question` to a number of artifical questions, which where generated (reverse engineered) based on the `answer`:
66

77
```{math}
88
\text{answer relevancy} = \frac{1}{N} \sum_{i=1}^{N} cos(E_{g_i}, E_o)
@@ -66,4 +66,4 @@ To calculate the relevance of the answer to the given question, we follow two st
6666

6767
- **Step 2:** Calculate the mean cosine similarity between the generated questions and the actual question.
6868

69-
The underlying concept is that if the answer correctly addresses the question, it is highly probable that the original question can be reconstructed solely from the answer.
69+
The underlying concept is that if the answer correctly addresses the question, it is highly probable that the original question can be reconstructed solely from the answer.

0 commit comments

Comments
 (0)