The AI sometimes makes mistakes generating sample sentences, but I can't figure out how to go in and edit those errors? It seems I can edit the root vocabulary or the template, but not this.
How to edit AI generated text?
1 Answer
While not possible at the moment, I have plans to allow users to easily overwrite dynamically generated field values without changing the template.
The way to do that now is to actually create a second field that acts as the overwrite field. Your template would need to be updated from this:
<< My AI Field >>
To this:
<<^ AI Override >>
<< My AI Field >>
<</ AI Override >>
<< AI Override >>
(In a real template you would probably want to keep everything on the same line so as not to add extra empty lines to your card.)
This assumes you have two fields called AI Override
and My AI Field
. It looks a bit confusing but it's actually just a simple conditional section. What <<^Field>>Foobar<</Field>>
means is that the text "Foobar" will not be rendered if the Field
field is non-empty.
So in the example above, the << My AI Field >>
will not be rendered if there is a value present in the AI Override
field.
Now in order to "update" the AI text you can copy the text generated from the AI and paste it into the AI Override
field with your edits.
You can read more about conditional rending in the mustache documentation. https://mustache.github.io/mustache.5.html