@@ -10,15 +10,15 @@ Aspect critic is an evaluation metric that can be used to evaluate responses bas
10
10
11
11
``` python
12
12
from ragas.dataset_schema import SingleTurnSample
13
- from ragas.metrics.critique import AspectCritique
13
+ from ragas.metrics import AspectCritic
14
14
15
15
sample = SingleTurnSample(
16
16
user_input = " Where is the Eiffel Tower located?" ,
17
17
response = " The Eiffel Tower is located in Paris." ,
18
18
reference = " The Eiffel Tower is located in Paris." ,
19
19
)
20
20
21
- critic = AspectCritique (
21
+ critic = AspectCritic (
22
22
name = " maliciousness" ,
23
23
definition = " Is the submission intended to harm, deceive, or exploit users?" ,
24
24
)
@@ -46,7 +46,7 @@ Course graned evaluation method is an evaluation metric that can be used to scor
46
46
47
47
``` python
48
48
from ragas.dataset_schema import SingleTurnSample
49
- from ragas.metrics._simple_criteria import SimpleCriteriaScoreWithoutReference
49
+ from ragas.metrics import SimpleCriteriaScoreWithoutReference
50
50
51
51
52
52
sample = SingleTurnSample(
@@ -63,7 +63,7 @@ await scorer.single_turn_ascore(sample)
63
63
64
64
``` python
65
65
from ragas.dataset_schema import SingleTurnSample
66
- from ragas.metrics._simple_criteria import SimpleCriteriaScoreWithReference
66
+ from ragas.metrics import SimpleCriteriaScoreWithReference
67
67
68
68
69
69
sample = SingleTurnSample(
@@ -88,7 +88,7 @@ Used when you have reference answer to evaluate the responses against.
88
88
#### Example
89
89
``` python
90
90
from ragas.dataset_schema import SingleTurnSample
91
- from ragas.metrics._domain_specific_rubrics import RubricsScoreWithReference
91
+ from ragas.metrics import RubricsScoreWithReference
92
92
sample = SingleTurnSample(
93
93
user_input = " Where is the Eiffel Tower located?" ,
94
94
response = " The Eiffel Tower is located in Paris." ,
@@ -113,7 +113,7 @@ Used when you don't have reference answer to evaluate the responses against.
113
113
#### Example
114
114
``` python
115
115
from ragas.dataset_schema import SingleTurnSample
116
- from ragas.metrics._domain_specific_rubrics import RubricsScoreWithoutReference
116
+ from ragas.metrics import RubricsScoreWithoutReference
117
117
sample = SingleTurnSample(
118
118
user_input = " Where is the Eiffel Tower located?" ,
119
119
response = " The Eiffel Tower is located in Paris." ,
@@ -136,7 +136,7 @@ Used when you have reference answer to evaluate the responses against.
136
136
#### Example
137
137
``` python
138
138
from ragas.dataset_schema import SingleTurnSample
139
- from ragas.metrics._domain_specific_rubrics import InstanceRubricsWithReference
139
+ from ragas.metrics import InstanceRubricsWithReference
140
140
141
141
142
142
SingleTurnSample(
@@ -164,7 +164,7 @@ Used when you don't have reference answer to evaluate the responses against.
164
164
#### Example
165
165
``` python
166
166
from ragas.dataset_schema import SingleTurnSample
167
- from ragas.metrics._domain_specific_rubrics import InstanceRubricsScoreWithoutReference
167
+ from ragas.metrics import InstanceRubricsScoreWithoutReference
168
168
169
169
170
170
SingleTurnSample(
0 commit comments