Role Playing in Prompts

Role Playing in Prompts

March 14th, 2023
View OriginalTranslated by Google

One technique for improving the AI's answer to questions is to assign it a role. For example, tell him "you are a doctor" or "you are a lawyer", and then ask the AI ​​to answer some medical or legal questions. This approach provides context that helps the AI ​​better understand questions and thus come up with more accurate answers.

In the above example, the AI ​​is told at the beginning that it is a mathematician, which provides the context for the assigned role of AI and enhances its understanding of mathematical problems. Note: In newer versions of AI models like GPT-3 davinci-003, this trick may not work as well, but still works to some extent.


no dataCoffee time! Feel free to comment