We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3237d50 commit 8e7ead0Copy full SHA for 8e7ead0
src/ragas/metrics/_tool_call_accuracy.py
@@ -55,6 +55,8 @@ async def _get_arg_score(
55
def is_sequence_aligned(
56
self, pred_sequence: t.List[str], ref_sequence: t.List[str]
57
) -> bool:
58
+ if len(pred_sequence) != len(ref_sequence):
59
+ return False
60
ref_index = 0 # Index to track position in reference sequence
61
for pred in pred_sequence:
62
if ref_index < len(ref_sequence) and pred == ref_sequence[ref_index]:
0 commit comments