You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getstarted/evals.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ In this guide, you will evaluate a **text summarization pipeline**. The goal is
11
11
12
12
### Evaluating using a Non-LLM Metric
13
13
14
-
Here is a simple example that uses `BleuScore`score to score summary
14
+
Here is a simple example that uses `BleuScore` to score a summary:
15
15
16
16
```python
17
17
from ragas import SingleTurnSample
@@ -40,9 +40,9 @@ Here we used:
40
40
41
41
As you may observe, this approach has two key limitations:
42
42
43
-
-**Time-Consuming Preparation:** Evaluating the application requires preparing the expected output (`reference`) for each input, which can be both time-consuming and challenging.
43
+
-**Time-consuming preparation:** Evaluating the application requires preparing the expected output (`reference`) for each input, which can be both time-consuming and challenging.
44
44
45
-
-**Inaccurate Scoring:** Even though the `response` and `reference` are similar, the output score was low. This is a known limitation of non-LLM metrics like `BleuScore`.
45
+
-**Inaccurate scoring:** Even though the `response` and `reference` are similar, the output score was low. This is a known limitation of non-LLM metrics like `BleuScore`.
46
46
47
47
48
48
!!! info
@@ -51,7 +51,7 @@ As you may observe, this approach has two key limitations:
51
51
To address these issues, let's try an LLM-based metric.
52
52
53
53
54
-
### Evaluating using a LLMbased Metric
54
+
### Evaluating using a LLM-based Metric
55
55
56
56
57
57
**Choose your LLM**
@@ -61,10 +61,8 @@ choose_evaluator_llm.md
61
61
62
62
**Evaluation**
63
63
64
-
65
64
Here we will use [AspectCritic](../concepts/metrics/available_metrics/aspect_critic.md), which is an LLM based metric that outputs pass/fail given the evaluation criteria.
66
65
67
-
68
66
```python
69
67
from ragas import SingleTurnSample
70
68
from ragas.metrics import AspectCritic
@@ -88,7 +86,7 @@ Output
88
86
Success! Here 1 means pass and 0 means fail
89
87
90
88
!!! info
91
-
There are many other types of metrics that are available in ragas (with and without `reference`), and you may also create your own metrics if none of those fits your case. To explore this more checkout [more on metrics](../concepts/metrics/index.md).
89
+
There are many other types of metrics that are available in `ragas` (with and without `reference`), and you may also create your own metrics if none of those fits your case. To explore this more checkout [more on metrics](../concepts/metrics/index.md).
0 commit comments