Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
okirmis committed Dec 23, 2024
1 parent bf5af4f commit e69030e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llama-index-core/llama_index/core/indices/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def default_parse_choice_select_answer_fn(
answer_nums.append(answer_num)
# extract just the first digits after the colon.
try:
_answer_relevance = re.findall(r"\d+", line_tokens[1].split(":")[1].strip())[0]
_answer_relevance = re.findall(
r"\d+", line_tokens[1].split(":")[1].strip()
)[0]
answer_relevances.append(float(_answer_relevance))
except (IndexError, ValueError) as e:
if not raise_error:
Expand Down

0 comments on commit e69030e

Please sign in to comment.