Prompt Generators

👉 Try Our New Prompt Generator

Prompt engineering: Quick Guide With Examples


Prompt engineering is a technique used to improve the performance and control of language models like GPT-3.5.

There are several types of prompt engineering strategies: 

Closed Prompt (Question): Ask for specific information or calculations.
Example: "What is the capital of France?"

Open Prompt (Creative Request): Encourage free-form creative responses.
Example: "Write a short story about a haunted house."

Multi-turn Prompt (Dialog): Engage in a conversation or interaction with the model.
Example:
User: "Tell me a joke."
Model: "Why did the chicken cross the road?"

Conditional Prompt (Task with Constraints): Specify conditions for the response.
Example: "Write a poem about autumn using 10 lines."

Comparison Prompt (Compare and Contrast): Analyze similarities and differences.
Example: "Compare and contrast dogs and cats as pets."

Instructive Prompt (Step-by-Step): Provide instructions or guidance for a process.
Example: "Provide a step-by-step guide on how to tie a bowtie."

Prompt Variation: Experiment with wording while requesting the same information or action.
Example variations: "Tell me a joke," "Could you tell me a joke, please," "Share a joke with me."

Human Feedback Loop: Interact with the model iteratively, refining responses based on feedback.
Example: User provides feedback on a model-generated response to improve subsequent responses.

Regularization Techniques: Adjust parameters to control response randomness and length.
Example: Setting "temperature" to influence response creativity or "max tokens" for response length.

Domain-Specific Prompt (Specialized Content): Specify a domain or context for the response.
Example: "Write a research summary on quantum computing."

50 example of Prompt engineering
  1. Closed Prompt: "What is the capital of France?"
  2. Closed Prompt: "Calculate 25 multiplied by 4."
  3. Closed Prompt: "Define 'Photosynthesis'."
  4. Open Prompt: "Write a short story about a haunted house."
  5. Open Prompt: "Describe your favorite childhood memory."
  6. Open Prompt: "Explain the concept of artificial intelligence."
  7. Multi-turn Prompt:
    • User: "Tell me a joke." Model: "Why did the chicken cross the road?" User: "I don't know. Why?" Model: "To get to the other side!"
  8. Multi-turn Prompt:
    • User: "Can you recommend a good book to read?" Model: "What genre are you interested in?" User: "I enjoy science fiction." Model: "In that case, I recommend 'Dune' by Frank Herbert."
  9. Conditional Prompt: "Write a poem about autumn using 10 lines."
  10. Conditional Prompt: "Translate the following Spanish sentence into English: 'Hola, ¿cómo estás?'"
  11. Conditional Prompt: "Compose a letter of resignation for a job you never had."
  12. Comparison Prompt: "Compare and contrast dogs and cats as pets."
  13. Comparison Prompt: "Discuss the similarities and differences between classical music and rock music."
  14. Comparison Prompt: "Analyze the advantages and disadvantages of electric cars and hybrid cars."
  15. Instructive Prompt: "Provide a step-by-step guide on how to tie a bowtie."
  16. Instructive Prompt: "Explain the process of photosynthesis in plants."
  17. Instructive Prompt: "Create a recipe for a vegetarian lasagna."
  18. Prompt Variation: "Tell me a joke."
  19. Prompt Variation: "Could you tell me a joke, please?"
  20. Prompt Variation: "Share a joke with me."
  21. Human Feedback Loop: User provides feedback on a model-generated response to improve subsequent responses.
  22. Human Feedback Loop: User rates the model's response and asks for revisions if necessary.
  23. Regularization Technique: Adjusting the "temperature" parameter to control response randomness.
  24. Regularization Technique: Setting a maximum limit on the number of tokens in the response using "max tokens."
  25. Domain-Specific Prompt: "Write a research summary on quantum computing."
  26. Domain-Specific Prompt: "Compose a technical report on climate change mitigation strategies."
  27. Domain-Specific Prompt: "Generate marketing copy for a new smartphone."
  28. Emotional Prompt: "Write a love letter to someone you deeply care about."
  29. Emotional Prompt: "Describe the feeling of utter happiness."
  30. Emotional Prompt: "Write a letter expressing condolences for a loss."
  31. Persuasive Prompt: "Write an essay arguing for the importance of renewable energy sources."
  32. Persuasive Prompt: "Convince the reader to adopt a healthy lifestyle."
  33. Persuasive Prompt: "Make a case for the benefits of space exploration."
  34. Storytelling Prompt: "Create a character profile for a fearless adventurer."
  35. Storytelling Prompt: "Write the opening paragraph of a science fiction novel."
  36. Storytelling Prompt: "Describe a mysterious artifact found in an ancient tomb."
  37. Socratic Prompt: "Explain the Socratic method and its role in philosophical inquiry."
  38. Socratic Prompt: "Discuss the ethics of artificial intelligence in healthcare."
  39. Socratic Prompt: "Explore the concept of justice in Plato's 'Republic.'"
  40. Data Interpretation Prompt: "Analyze the following dataset of stock prices and predict future trends."
  41. Data Interpretation Prompt: "Interpret a graph showing the correlation between temperature and ice cream sales."
  42. Data Interpretation Prompt: "Examine a chart of population growth in urban areas and identify key patterns."
  43. Opinion Prompt: "Share your opinion on the impact of social media on society."
  44. Opinion Prompt: "Express your thoughts on the importance of preserving biodiversity."
  45. Opinion Prompt: "Discuss your views on the role of government in healthcare."
  46. Imaginative Prompt: "Imagine you are a time traveler from the future. Describe your first encounter with the past."
  47. Imaginative Prompt: "If you could have any superpower, what would it be, and how would you use it?"
  48. Imaginative Prompt: "Describe a world where humans have colonized Mars."
  49. Ethical Prompt: "Discuss the ethical dilemmas of genetic engineering in humans."
  50. Ethical Prompt: "Explore the moral implications of autonomous weapon systems."