-
Notifications
You must be signed in to change notification settings - Fork 31
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
[Feature Request] Instruct template automatic substitution #69
Comments
That's not a bad idea, but you can use |
|
I could indeed use the {} strings, but yeah I like seeing the exact prompt being sent to the backend. |
You can see the exact prompt with everything filled in that's being sent to the model in the context modal (Persistent Context > Show Context), but I see your point. Problem I see with the replacing formats is that either we'd have to check the prompt for all of the registered instruct formats, or explicitly specify which format we want to replace, since we currently have no way of elegantly figuring out what format a prompt used. Maybe it could get its own modal or collapsible where you can select "find" and "replace with" templates in two dropdowns? |
If necessary, I suggest we assume the last selected format is the correct one.
I doubt the performance would be bad enough to matter, and imo performance should only be a consideration if the change could consistently impact React's render time.
I think the most robust way to handle this would be to parse the context with a function like this, then it would be simple enough to rewrite it using the new format.
+1 for a modal. But we could also add a checkbox to the instruct modal that says something like "Auto-replace old instruct format on change" |
A find and replace feature would be interesting even on its own. Some general text editor programs have this which makes replacing several things at the same time quite nice and easy. |
Started on a search and replace feature in #77. |
It would be convenient for testing different instruct models in a single session, where if you select a different template, it would search and replace the prefixes/suffixes in the current session.
The text was updated successfully, but these errors were encountered: