Compete in HackAPrompt 2.0, the world's largest AI Red-Teaming competition!

Check it out →
Bienvenidos
😃 Básico
💼 Aplicaciones básicas
🧙‍♂️ Intermediate
🤖 Agentes
⚖️ Reliability
🖼️ Image Prompting
🔓 Prompt Hacking
🔨 Tooling
💪 Prompt Tuning
🎲 Miscellaneous
📚 Bibliography
Resources
📦 Prompted Products
🛸 Recursos adicionales
🔥 Hot Topics
✨ Créditos
😃 Básico🟢 Rol Prompt

Rol Prompt

🟢 This article is rated easy
Reading Time: 1 minute
Last updated on August 7, 2024

Sander Schulhoff

Otra técnica de enfoque es asignar un rol a la IA. Por ejemplo, tu enfoque podría comenzar con "Eres un médico" o "Eres un abogado" y luego pedirle a la IA que responda algunas preguntas médicas o legales. Aquí hay un ejemplo:

Eres un brillante matemático que puede resolver cualquier problema del mundo.
Intenta resolver el siguiente problema:

¿Cuál es 100*100/400*56?

// highlight-start
La respuesta es 1400.
// highlight-end

La respuesta de la IA (GPT-3 davinci-003) está resaltada en verde:

Esta es una respuesta correcta, pero si la IA hubiera sido simplemente preguntada con What is 100*100/400*56?, habría respondido 280 (incorrect).

Al asignar un rol a la IA, le estamos dando cierto contexto. Este contexto ayuda a la IA a entender mejor la pregunta. Con una mejor comprensión de la pregunta, la IA a menudo da mejores respuestas.

Notas

Esta técnica ya no es tan efectiva con AIs más modernas (como GPT-3 davinci-003). Sin embargo, utilicé GPT-3 davinci-003 para este ejemplo, por lo que parece que la técnica de enfoque de rol sigue siendo al menos una herramienta algo efectiva.

🚧 This page needs citations 🚧

Sander Schulhoff

Sander Schulhoff is the CEO of HackAPrompt and Learn Prompting. He created the first Prompt Engineering guide on the internet, two months before ChatGPT was released, which has taught 3 million people how to prompt ChatGPT. He also partnered with OpenAI to run the first AI Red Teaming competition, HackAPrompt, which was 2x larger than the White House's subsequent AI Red Teaming competition. Today, HackAPrompt partners with the Frontier AI labs to produce research that makes their models more secure. Sander's background is in Natural Language Processing and deep reinforcement learning. He recently led the team behind The Prompt Report, the most comprehensive study of prompt engineering ever done. This 76-page survey, co-authored with OpenAI, Microsoft, Google, Princeton, Stanford, and other leading institutions, analyzed 1,500+ academic papers and covered 200+ prompting techniques.