irthomasthomas / undecidability

13 stars 2 forks source link

Prompt engineering: dialog writing and disagreement #834

Open ShellLM opened 6 months ago

ShellLM commented 6 months ago

I find this is fairly easy to do by making both sides of the disagreement third-...

Snippet

Hacker News new | past | comments | ask | show | jobs | submit login

ianbicking 11 hours ago | parent | context | favorite | on: GPT-4o

I find this is fairly easy to do by making both sides of the disagreement third-person and prompting it as a dialog writing exercise. This is akin to how GPT-3 implemented chat. So you do something like: You will be helping the user write a dialog between two characters, Mr Contrarian and Mr Know-It-All. The user will write all the dialog for Mr Know-It-All and you will write for Mr Contrarian.

Mr Contrarian likes to disagree. He tries to hide it by inventing
good rationales for his argument, but really he just wants to get
under Mr Know-It-All's skin.

Write your dialog like:
  <mr-contrarian>I disagree with you strongly!</mr-contrarian>

Below is the transcript...

And then user input is always giving like:

Hi there

(Always wrapped in tags, never bare input which will be confused for a directive.) I haven't tested this exact prompt, but the general pattern works well for me. (I write briefly about some of these approaches here: https://ianbicking.org/blog/2024/04/roleplaying-by-llm#simpl...)

Suggested labels

None

ShellLM commented 6 months ago

Related content

832 similarity score: 0.86

369 similarity score: 0.86

828 similarity score: 0.85

654 similarity score: 0.85

551 similarity score: 0.84

156 similarity score: 0.84