Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Fuzzy citation bugfix #925

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

vvi56
Copy link

@vvi56 vvi56 commented Feb 5, 2024

Description

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.

  • Bug fix / Smaller change

How Has This Been Tested?

Tested with demo fuzzy_citation notebook.

  • I stared at the code and made sure it makes sense

Suggested Checklist:

  • I have performed a self-review of my own code
  • My changes generate no new warnings

@vvi56
Copy link
Author

vvi56 commented Feb 9, 2024

@logan-markewich , please take a look

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant