GUIDE

Side School

Le May 14, 2024, avec

Ben Issen

RACE: The technique to enhance prompting

Optimize your AI responses: The RACE method in action

RACE is a simple technique to improve the quality of responses on ChatGPT and other generative AI models. 

RACE is an acronym that stands for:

  • Role: the role that generative AI should take.

  • Action: what we want this AI to do for us.

  • Context: the relevant information for our case.

  • Examples: good examples of structures we would like to reproduce.

We can remember this short acronym by thinking of a race towards AI! 


Example of prompting with RACE

So, rather than writing "write a blog post," by applying RACE, we would write instead
"You are a professional writer (Role). Write a blog post to announce our new team (Action). For context, our school, Side School, has just hired 3 key roles for marketing, academia, and IT (Context). Take inspiration from these existing articles: link 1, link 2, link 3 (Examples)."



Importance of examples

Without RACE prompting, generative AI responses are less relevant in all our tests. Providing examples, the fourth step, has the most influence on the quality of the generated responses. 

This is what is called "few-shot prompting" in AI jargon, as opposed to "zero-shot prompting," where no examples are used.


Prompts using RACE

Before Side School, I created an extension called CrowdGPT that aggregates the best prompts from the web. After observing thousands of prompts, I noticed that the best ones had the same structure: this is where the RACE method came from. Here are some examples:





And even, for the smartest ones:



Automatically using RACE

To automatically apply the acronym "Role, Action, Context, Examples," instead of rewriting it each time, I use text expansion on Mac/iPhone. A short tutorial:

On Windows and other OS, you can use this trick in the same way by using a tool like Espanso.


Other techniques complementary to RACE

RACE is a versatile prompting technique that can be supplemented, depending on the case, by the following techniques:

  • Prompt Chaining : For complex tasks, instead of using one very long prompt, it is better to break it down into smaller tasks.

  • Prompting “divergence then convergence” : For creative tasks, ask the LLM to generate several options, then choose the best one explaining why, before generating a final version.

  • Prompting ”Chain-of-Thought” : For tasks with logical reasoning, asking the language model (LLM) to “think in steps” improves final results.

These are techniques we delve into in our Side School trainings. 

Auteur :

Biographie

Directeur Associé chez Side School. Ben Issen était précédemment fondateur de Supercreative où il a créé plusieurs outils IA à destination des freelances.

Outils IA utilisés

ChatGPT for improvement suggestions, Notion AI for the first draft, Midjourney for the cover, Tella for the tutorial.

Le meilleur de l’IA, chaque mois.

La newsletter pour progresser avec l’IA dans ton métier.

Chaque mois, Side School sélectionne les ressources les plus utiles :

  • Des outils pour apprendre, appliquer et progresser dans l'IA

  • Nos nouveaux articles, et cas d'usages de nos participants

  • Des invitations aux prochains événements

  • Des places à saisir dans nos bootcamps IA

Déjà lu par plus de 4000 inscrits. Pas de spam.

Le meilleur de l’IA, chaque mois.

La newsletter pour progresser avec l’IA dans ton métier.

Chaque mois, Side School sélectionne les ressources les plus utiles :

  • Des outils pour apprendre, appliquer et progresser dans l'IA

  • Nos nouveaux articles, et cas d'usages de nos participants

  • Des invitations aux prochains événements

  • Des places à saisir dans nos bootcamps IA

Déjà lu par plus de 4000 inscrits. Pas de spam.

Le meilleur de l’IA, chaque mois.

La newsletter pour progresser avec l’IA dans ton métier.

Chaque mois, Side School sélectionne les ressources les plus utiles :

  • Des outils pour apprendre, appliquer et progresser dans l'IA

  • Nos nouveaux articles, et cas d'usages de nos participants

  • Des invitations aux prochains événements

  • Des places à saisir dans nos bootcamps IA

Déjà lu par plus de 4000 inscrits. Pas de spam.

Based in Paris, France, Side School SAS trains professionals how to leverage AI in their jobs. Our offices are located at 15 Quai de L’Oise, 75019, Paris, France. Side School is a registered trademark. To access the programs you are enrolled in, you must provide a valid email address that you can access. Payments are processed with Stripe, a third-party platform. Paypal, Visa, MasterCard are also supported, along with other payment networks via Google Pay and Apple Pay. For payment-related issues, contact "contact@side.school". For any other questions, collaborations, and media inquiries, contact "contact@side.school". The content and services provided by Side School are intended for educational and informational purposes only. Side School does not guarantee any specific results. Your success and potential acceleration with AI depend on your personal efforts, dedication, and application of acquired skills.

SIDE SCHOOL

Based in Paris, France, Side School SAS trains professionals how to leverage AI in their jobs. Our offices are located at 15 Quai de L’Oise, 75019, Paris, France. Side School is a registered trademark. To access the programs you are enrolled in, you must provide a valid email address that you can access. Payments are processed with Stripe, a third-party platform. Paypal, Visa, MasterCard are also supported, along with other payment networks via Google Pay and Apple Pay. For payment-related issues, contact "contact@side.school". For any other questions, collaborations, and media inquiries, contact "contact@side.school". The content and services provided by Side School are intended for educational and informational purposes only. Side School does not guarantee any specific results. Your success and potential acceleration with AI depend on your personal efforts, dedication, and application of acquired skills.

SIDE SCHOOL