-
Notifications
You must be signed in to change notification settings - Fork 40
DEV: improve artifact editing and eval system #1130
Conversation
ca95a10 to
6b3a57a
Compare
| content = | ||
| DiscourseAi::Utils::DiffUtils::SimpleDiff.apply( | ||
| content, | ||
| block[:search], | ||
| block[:replace], | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a chance different blocks might target the same search section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah llms are crazy... but since this applies it one at a time future replaces will just fail.
my next iteration is going to be hijacking the "stream" and interrupting the llm if it starts misbehaving... but going to leave this to next time
nattsw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than that replace question, we can try this out.
Uh oh!
There was an error while loading. Please reload this page.