Find answers from the community

Updated 2 months ago

Hey, I sometimes encounter the issue

Hey, I sometimes encounter the issue below when using the llmrerank node processor. Any idea?


Plain Text
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jayc/Library/Caches/pypoetry/virtualenvs/chatbot-5YPcWG7C-py3.11/lib/python3.11/site-packages/llama_index/indices/utils.py", line 104, in default_parse_choice_select_answer_fn
    answer_num = int(line_tokens[0].split(":")[1].strip())
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
L
1 comment
I think this is just the LLM failing to follow output instuctions (and our output parsing failing)
Add a reply
Sign up and join the conversation on Discord