minor cleanup and prompt update

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
Francisco Javier Arceo 2025-10-06 16:14:23 -04:00
parent 38205492f8
commit eb8acd24b0
6 changed files with 30 additions and 47 deletions

View file

@ -361,8 +361,7 @@ class TestExtractCitationsFromText:
assert cleaned_text == expected_clean_text
assert annotations == expected_annotations
# OpenAI typically cites at the end of the sentence but we support the middle just in case,
# which makes the position the start of the next word.
# OpenAI cites at the end of the sentence
assert cleaned_text[expected_annotations[0].index] == "."
assert cleaned_text[expected_annotations[1].index] == "?"
assert cleaned_text[expected_annotations[2].index] == "!"