Skip to content

Commit dba8fb8

Browse files
authored
Fix issue #71 (#72)
Fixed issue where responses that cannot be split fails
1 parent c4579e1 commit dba8fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

continuous_eval/metrics/generation/text/llm_based.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __call__(self, answer: str, retrieved_context: List[str], question: str, **k
7373
score_txt, reasoning = response.split("\n", 1)
7474
score = float("yes" in score_txt.lower())
7575
except ValueError:
76-
score = float("yes" in score_txt.lower())
76+
score = float("yes" in response.lower())
7777
reasoning = response
7878

7979
return {

0 commit comments

Comments
 (0)