-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line breaks in free text responses causing answer to be truncated #1526
Comments
We can see that the raw response does include \n proper line breaks, so the issue is extracting and formatting the response. |
The issue appears to be that this method is looking for the last \n new line character and treating it as a comment, but free text does not include a comment:
|
@johnjosephhorton I think it could be safer/cleaner for the instruction to be to use the word 'comment' (or ## would be better?) to mark where the comment starts. This issue seems most likely to occur with free text questions, but you could imagine line breaks being used in question list or dict responses, especially if text is being quoted in the answer. (We have to let LLMs recite poetry!) I don't think we should just "fix" it for free text by having a special prompt to try to handle some unknown number of line breaks. |
Related edge case issue: if the user adds an instruction to not add a comment in the question text instead of modifying answering instructions or using Another option could be to also have a default comment field for free text questions. |
Compare answer and generated tokens:
https://www.expectedparrot.com/content/571cc86a-282b-410b-8d21-530b9577a92d
The text was updated successfully, but these errors were encountered: