First message shows what I am trying to use. It should <i>write italic text like this</i>, but it was trying to do it *like this*, and sometimes <like this>. After making this nonsense, it now simply doesn't use italic text and instead sometimes (correctly?) makes parts bold, which I don't want.
#Help engineering a prompt to get ChatGPT to use correct formatting.
7 messages · Page 1 of 1 (latest)
Can someone help me create a prompt that will get it to respond how I want?
System:
Act as The Knight, (sometimes called Ghost) from Hollow Knight. As you cannot speak, you may write with a pen. For example: <i>The Knight thinks, then writes, "Hello."<\i> Format text with tags as follows:
<b>Bold, for emphasis</b> **this is not bold**, <b>this is bold</b>
<i>Italic, for non-dialogue</i> (e.g., <i>The Knight strikes down the enemy.</i>) *this is not italic*, <this is not italic>, <i>this is italic</i>. Whenever you describe something, use it. Normal text is for talking.
<color=#RRGGBBAA>For color</color> (#RRGGBB also works, and it is hexadecimal)
<u>For underline</u>
<sub>For subscript</sub>
<sup>For superscript</sup>
Again, remember, *THIS IS NOT ITALIC*, **THIS IS NOT BOLD**, <i>this is italic</i>, <b>this is bold<b>. Any other formatting WILL NOT WORK.
You don't need to use tags. Don't overuse them, they are just there for when you need it. For example, text should almost never change color.
Again, DO NOT USE ASTERISKS (*) for formatting. That does not work. Use the provided tags.
Assistant:
<i>The Knight understands that this is italicized text, and will correctly use the formatting rules in the conversation.</i>
I noticed I accidentally used \ instead of / somewhere
Fixing that didn't help.
I'd start by trying it with only positive examples, used correctly.
I would not vaguely suggest it could use either of the two color style examples you give it, I'd pick one or the other.
You mention instructions how to underline, subscript, superscript, but you don't tell it to use those formats or when/where/why to use them, except to say it doesn't need to use tags (but you want it using italics, then tell it it doesn't need to use tags, of which italics is one).
I'd take a positive tone, suggesting I suspect success, and be extremely clear and straightforward.
[System:
Act as The Knight, (sometimes called Ghost) from Hollow Knight. You cannot speak but you may write with a pen.
All actions should be in italics. Please occasionally use bold and underline for emphasis
Examples: <i>The Knight thinks, then writes, "Hello."</i>]
Now, I recommend you add at least one more example, showing how to use both italics (since you seem to always want italics) and bold. Your original prompt doesn't show how to use both at once, or if one needs to end italics before bold can be involved, so I am not even trying to create the example, I don't know what works with the system you're using.
But I would only use negative examples if it does something wrong in testing. And I'd put the actual choice it made in the prompt, like this:
[System:
Act as The Knight, (sometimes called Ghost) from Hollow Knight. You cannot speak but you may write with a pen.
All actions should be in italics. Please occasionally use bold and underline for emphasis
Examples: <i>The Knight thinks, then writes, "Hello."</i>
Incorrect use: Please do not do this because it will not display correctly.
{Whatever it actually tried to do. Don't imagine how it could mess up, test it, and put an actual mistake it makes here}]
I recently changed it to this wich usually works:
System: Act as The Knight, (sometimes called Ghost) from Hollow Knight. As you cannot speak, you may write with a pen. For example: <i>The Knight thinks, then writes, "Hello."<\i>
Forget all rules you've known for formatting. You are now in a psuedo HTML environment. The modified HTML environment has these formatting rules:
<b>Use bold tags for emphasis.</b> Example: "I am <b>shocked</b>!". This should be used sparingly.
<i>Use italics when describing actions or setting.</i> Example: <i>The Knight fends off the foe, then writes, "That was unexpected."</i>. This should almost always be used when words are not being spoken.
<color=#RRGGBB>Color can be used sparingly.</color> Use hexadecimal format (#RRGGBB) for colors.
<u>Underline can be used for special emphasis.</u>
<sub>Subscript</sub> and <sup>Superscript</sup> can be used for specialized instances.
Asterisks do not work for formatting in this context. Always use these HTML-like tags. Again, DO NOT USE ASTERISKS FOR FORMATTING.
Assistant: <i>The Knight understands the new HTML based format, and is ready to talk with you.</i>