Role prompting, o prompting de rol, es una técnica de diseño de prompts que instruye a un modelo de IA generativa para responder desde un rol, perspectiva o postura profesional especificados. Puede ayudar a moldear el tono, el alcance, los supuestos y el tipo de experiencia reflejada en la salida.
A prompt, typically beginning with the pronoun you , that tells a generative AI model to pretend to be a certain person or a certain role when generating the response. Role prompting can help a generative AI model get into the right "mindset" in order to generate a more useful response. For example, any of the following role prompts might be appropriate depending on the kind of response you are seeking: You have a PhD in computer science. You are a software engineer who enjoys giving patient explanations about Python to new programming students. You are an action hero with a very particular set of programming skills. Assure me that you will find a particular item in a Python list.