File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 55 ContextPrecision ,
66 ContextRelevancy ,
77 context_precision ,
8+ context_relevancy ,
89)
910from ragas .metrics .context_recall import ContextRecall , context_recall
1011from ragas .metrics .critique import AspectCritique
2324 "AnswerCorrectness" ,
2425 "answer_correctness" ,
2526 "ContextRelevancy" ,
26- "context_precision " ,
27+ "context_relevancy " ,
2728 "ContextPrecision" ,
2829 "context_precision" ,
2930 "AspectCritique" ,
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ class ContextRelevancy(MetricWithLLM):
111111 any encoder model. Used for calculating bert_score.
112112 """
113113
114- name : str = "context_precision "
114+ name : str = "context_relevancy "
115115 evaluation_mode : EvaluationMode = EvaluationMode .qc
116116 batch_size : int = 15
117117 strictness : int = 1
@@ -187,7 +187,6 @@ def _score_batch(
187187
188188@dataclass
189189class ContextPrecision (MetricWithLLM ):
190-
191190 """
192191 Average Precision is a metric that evaluates whether all of the
193192 relevant items selected by the model are ranked higher or not.
You can’t perform that action at this time.
0 commit comments