Member-only story

Six prompting strategies for 2024

Daniel García
4 min readDec 19, 2023

--

Building a perfect prompt can be a challenging task, but with the right tools and techniques, it can be a fun and rewarding experience. Today I will share with you the 6 most important tips to dominate prompt engineering in 2024.

Write clear instructions

These models can’t read your mind. If outputs are too long, ask for brief replies. If outputs are too simple, ask for expert-level writing. If you dislike the format, demonstrate the forma you’d like to see. The less the model has to guess at what you want, the more likely you’ll get it.

Tactics:

  • Include details in your query to get relevant answers.
  • Ask the model to adopt a persona.
  • Use delimiters to clearly indicate distinct parts of the input.
  • Specify the steps required to complete a task.
  • Provide examples.
  • Specify the desired length of the output.

Provide reference text

Language models can confidently invent fake answers, specially when asked about esoteric topics or for citations…

--

--

Daniel García
Daniel García

Written by Daniel García

Lifetime failure - I write as I learn 🤖

No responses yet