5 Prompting Mistakes You’re Probably Making (and How to Avoid Them)


Large Language Models (LLMs) like ChatGPT, Bard, and others are powerful tools, but they’re only as good as the prompts you give them. Learning how to craft effective prompts is crucial to unlocking their full potential. This article will highlight five common prompting mistakes and provide actionable advice on how to avoid them.

Mistake 1: Being Too Vague

One of the biggest pitfalls is providing prompts that are too open-ended or lack specific details. LLMs thrive on clarity. A vague prompt will likely result in a generic or unhelpful response.

Example (Bad): “Write a story.”

Why it’s bad: This provides no direction. What genre? What characters? What’s the setting?

How to Avoid It:

  • Be specific: Include details about the desired output, such as genre, tone, length, target audience, and any specific constraints.
  • Provide context: Give the LLM background information relevant to the task.
  • Define the goal: Clearly state what you want the LLM to achieve.

Example (Good): “Write a short science fiction story set on Mars about a lone astronaut who discovers an ancient alien artifact. The story should be around 500 words and evoke a sense of mystery and wonder.”

Mistake 2: Not Specifying the Desired Format

Do you want a list, a paragraph, a table, code, or something else entirely? Failing to specify the desired format can lead to the LLM generating output in an unexpected or unusable format.

Example (Bad): “Explain the concept of blockchain.”

Why it’s bad: The LLM might give you a single, dense paragraph that’s difficult to understand.

How to Avoid It:

  • Explicitly request the desired format: Use phrases like “Create a list of…”, “Write a paragraph explaining…”, “Generate a table showing…”, or “Write Python code that…”
  • Include examples (if possible): Providing an example of the desired output can greatly improve the LLM’s understanding.

Example (Good): “Explain the concept of blockchain. Present the information in a bulleted list, highlighting the key components and their functions.”

Mistake 3: Ignoring Prompt Chaining

Prompting isn’t always a one-and-done process. Sometimes, you need to refine your prompts and guide the LLM towards the desired result through a series of interactions. This is known as prompt chaining.

Example (Bad): Expecting the LLM to generate a perfect marketing plan with a single, initial prompt.

Why it’s bad: Complex tasks often require breaking them down into smaller, more manageable steps.

How to Avoid It:

  • Start with a broad prompt and then refine: Begin with a high-level request and then iterate based on the initial output.
  • Ask follow-up questions: If the output is not what you expected, ask clarifying questions to steer the LLM in the right direction.
  • Provide feedback: Tell the LLM what you like and dislike about the output, and how it can be improved.

Example (Good):

  1. Prompt 1: “Generate some ideas for a marketing campaign for a new line of organic dog food.”
  2. LLM Response: (Provides several campaign ideas)
  3. Prompt 2: “I like the idea of focusing on the health benefits. Can you elaborate on that and suggest some specific marketing channels?”
  4. LLM Response: (Provides a more detailed plan with specific channels)
  5. Prompt 3: “Can you write a short, catchy slogan that emphasizes the natural ingredients?”

Mistake 4: Not Setting a Persona/Role

LLMs can adopt different personas or roles to tailor their responses. Failing to specify a role can lead to inconsistent or irrelevant answers.

Example (Bad): “Explain the theory of relativity.”

Why it’s bad: The LLM might explain it in a highly technical way that’s difficult for a layperson to understand.

How to Avoid It:

  • Specify the desired persona: Tell the LLM to respond as a specific type of expert, like “Explain the theory of relativity as if you were teaching it to a high school student.”
  • Define the audience: Explicitly state who the target audience is for the response.

Example (Good): “Explain the theory of relativity as if you were a science journalist writing for a general audience newspaper.”

Mistake 5: Ignoring Tone and Style

The tone and style of the generated content can significantly impact its effectiveness. Failing to specify the desired tone and style can result in output that doesn’t align with your intentions.

Example (Bad): “Write a customer service email.”

Why it’s bad: The email might be too formal, too informal, or lack empathy.

How to Avoid It:

  • Describe the desired tone and style: Use adjectives like “professional,” “friendly,” “humorous,” “formal,” “informal,” “persuasive,” or “concise.”
  • Provide examples of the desired style: Share examples of text that embodies the tone and style you’re looking for.

Example (Good): “Write a friendly and helpful customer service email responding to a customer complaint about a delayed order. Acknowledge their frustration and offer a solution.”

By avoiding these common prompting mistakes, you can significantly improve the quality and relevance of the output you receive from LLMs. Experiment with different prompting techniques and iterate on your approach to unlock the full potential of these powerful tools.

Leave a Comment

Your email address will not be published. Required fields are marked *