Prompting AI Language Models Cheat Sheet

Harnessing the full potential of AI language models relies heavily on effective prompting. Whether you're seeking concise explanations, creative ideas, or logical reasoning, crafting the right prompt is key. The cheat sheet below shows the essential elements of prompting, providing examples and tips to enhance your interactions with AI models. Discover how to shape the output you desire and unlock new levels of AI-driven insights.

How Prompting Works

  • The prompt serves as the input to the language model, guiding its generation of responses.
  • The language model uses its training and knowledge to understand the prompt and generate a relevant response.
  • The quality and relevance of the response depend on the prompt's clarity, context, constraints, and other factors.

Key Elements & Example Prompts

  • Context: Provide relevant background information or context to guide the language model: "Explain the concept of recursion in computer programming, providing an example that demonstrates its application."
  • Format: Specify the desired format or type of response you want from the language model: "Compose a persuasive essay highlighting three benefits and two drawbacks of using renewable energy sources."
  • Constraints: Introduce constraints or criteria to narrow down the scope of responses: "Write a five-line poem, each line starting with the letter 'S', capturing the essence of a summer sunset."
  • Role-play: Frame the prompt as if you are engaging in a specific role or persona for more creative output: "You are a detective investigating a mysterious crime scene. Describe what you see, any clues you find, and your initial theories."
  • Reasoning/Evidence: Encourage the language model to provide logical reasoning or supporting evidence for its responses: "Identify the factors contributing to economic inequality, supporting your arguments with relevant statistics and case studies."
  • Length/Word Limit: Specify the desired length or set a word limit for the response: "In 100 words or less, explain the main causes of climate change and their potential consequences."
  • Multiple Perspectives: Ask the language model to consider different viewpoints or arguments on the topic: "Discuss the advantages and disadvantages of globalization from economic, cultural, and environmental perspectives."
  • Creative Output: Prompt the language model to think creatively, generate novel concepts, or brainstorm ideas: "Provide three reliable sources that support the claim that regular exercise improves mental health, citing specific studies or expert opinions."
  • Fact-checking: Ask the language model to fact-check its response or provide reliable sources: "Provide three reliable sources that support the claim that regular exercise improves mental health."
  • Personalization: Prompt the language model to provide subjective responses based on its own perspective: "Discuss a book, movie, or piece of art that had a profound impact on you and explain why it resonated with you."

Tips for Effective Prompting

  • Be specific: Clearly communicate what you want from the language model. Vague or ambiguous prompts can lead to irrelevant or unsatisfactory responses.
  • Use examples: Incorporate specific examples or scenarios to make the prompt more concrete and facilitate the generation of relevant responses.
  • Experiment with variations: Try different approaches or variations of the prompt to explore different angles or perspectives on the topic.
  • Review and iterate: Read and review the generated response to ensure it meets your expectations. If necessary, iterate on the prompt or provide additional guidance to refine the output.
  • Combine elements: Combine multiple key elements of prompting, such as context, constraints, and reasoning, to create more nuanced and targeted prompts.
  • Engage in a dialogue: If the initial response is not satisfactory, ask follow-up questions or provide feedback to guide the language model towards a better answer.
  • Be aware of limitations: While the language model is powerful, it may still produce incorrect or nonsensical responses. Use critical thinking and fact-checking when necessary.
  • Practice and learn: Experiment with different prompts and explore the capabilities of the language model. With practice, you'll become more skilled at crafting effective prompts and getting desired outputs.


In conclusion, by honing your skills in effective prompting, you can unlock new levels of potential with AI language models. With the provided examples and tips, you'll be able to craft prompts that yield concise explanations, creative ideas, logical reasoning, and personalized responses. Through practice and experimentation, you'll gain the ability to generate relevant and satisfying outputs. Embrace the power of prompting and discover the vast possibilities of AI language models.

If you found this guide helpful and want to dive deeper into the fascinating world of prompting language models, don't miss out on my book, Demystifying Prompts: Empowering Users to Shape AI Conversations. In it, you'll find an interview with ChatGPT, where we explore the intricacies of prompting and its impact on AI conversations. Take your understanding to the next level and uncover valuable insights in this thought-provoking read.

This post was written by Ramiro Gómez (@yaph) and published on . Subscribe to the Geeksta RSS feed to be informed about new posts.

Tags: artificial intelligence chatgpt cheat sheet natural language processing prompt engineering

Disclosure: External links on this website may contain affiliate IDs, which means that I earn a commission if you make a purchase using these links. This allows me to offer hopefully valuable content for free while keeping this website sustainable. For more information, please see the disclosure section on the about page.

Share post: Facebook LinkedIn Reddit Twitter