This PR fixes out of range error in fuzzy_citation pack that happens in case there are more than one response sentences.
Exception has occurred: IndexError
list index out of range
File ".../python3.11/site-packages/llama_hub/llama_packs/fuzzy_citation/base.py", line 68, in get_relevant_sentences
top_chunks[response_sent_idx][-1] += top_sentences[
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
Type of Change
Please delete options that are not relevant.
[x] Bug fix / Smaller change
How Has This Been Tested?
Tested with demo fuzzy_citation notebook.
[x] I stared at the code and made sure it makes sense
Description
This PR fixes out of range error in
fuzzy_citation
pack that happens in case there are more than one response sentences.Type of Change
Please delete options that are not relevant.
How Has This Been Tested?
Tested with demo fuzzy_citation notebook.
Suggested Checklist: