Prompt Attention Fixes - #8860
Conversation
…them from prompt.
|
Based on my quick testing, the outermost parentheses wrapping the entire chunked prompt are still being stripped. The same issue occurs with Example: Becomes |
|
I can confirm this behavior.
Select "one" and press ctrl-+, and it becomes: |
lstein
left a comment
There was a problem hiding this comment.
Still has issues with .add() and similar operators. See comments above.
account for mismatching quotes, missing quotes and other quote entities
|
@DustyShoe @lstein Last commit addresses quote craziness (mismatches, other entities, none at all) |
|
Looks like it’s working without major changes to the prompt structure. However, I have a small nitpick: it still flattens the prompt if it is written in separate paragraphs. For example: Becomes:
|
|
@joshistoast Are you intending to make changes in response to @DustyShoe 's nit? If not, I'm ok going ahead with an approval and merge and you can attend to this detail at a later date. |
I can try getting to it this Monday. But I feel like if we keep delaying these important fixes for new bug reports, they'll never get merged in. |
|
This should fix it |
lstein
left a comment
There was a problem hiding this comment.
It is working well in my hands. There may be other weird edge conditions, but I couldn't find them easily.
Summary
Addresses issues, oversights and edge cases surrounding the prompt attention hotkey feature.
Fixes and Improvements:
.blend(),.and()and.or();Related Issues / Discussions
Discussed in #8736
QA Instructions
Merge Plan
Checklist
What's Newcopy (if doing a release after this PR)