AIAppleseed
  • Home
  • About
  • Contact
  • Home
  • About
  • Contact
Search

Introduction to Prompt Engineering

A.  Components of an Effective Prompt:
  1. Clarity: The prompt should clearly state what is being asked or requested.
  2. Specificity: The more specific the prompt, the more targeted ChatGPT's response will be.
  3. Context: Providing sufficient background information or context can enhance the relevance of the response.
  4. Ethical Considerations: Discuss the importance of ethical prompting, avoiding requests for harmful content, misinformation, or invasion of privacy.
B.  Examples of Prompts using these and other strategies:
  1. “Write a poem about flowers” vs “Write a funny limerick about tulips and the coming of Spring with diction like Maya Angelou”
  2.  “Write a 500 word essay on the economic impact of the Civil War on the North”​
  3. “Write a college-level essay exploring the complexity of Falstaff's character with examples from a variety of Shakespeare's plays”
  4. "Write a sonnet that could be part of sonnets from the Portuguese in the style of four quartets"
  5. "Draw a surfing whale in the style of van Gogh"​​
  6. Please provide a summary of the following that is appropriate for sixth graders in the US: ON THE ELECTRODYNAMICS OF MOVING BODIES By A. EINSTEIN June 30, 1905
  7. Create a sample assignment that would require student work and could not easily be done simply using AI
  8. Please summarize the EU AI Act, focusing on what K-12 educators in the US should learn from it.
C.  Resubmitting the same prompt gives a new response
D.  Refine your prompts based on ChatGPT’s response–think of it like a conversation and keep asking questions
E.   Additional Strategies recommended at MarkTechPost.com include:
  1. Instruction-Based Prompts: Clearly instructing the AI on what to do, such as “Summarize the following article” or “Generate a list of key points,” helps obtain more specific responses. This technique leverages the model’s ability to follow direct commands.
  2. Role Play and Personas: Assigning an AI role or persona, such as “Act as a knowledgeable historian” or “Pretend you are a customer service representative,” tailor the responses to suit particular needs or scenarios. This approach helps generate contextually appropriate answers.
  3. Few-Shot and Zero-Shot Learning: Providing examples within the prompt (few-shot) helps the model understand the desired response format by learning from the given examples. Zero-shot learning relies on the AI’s pre-trained knowledge without examples, which can be effective for more general tasks.
F.  Prompt Engineering is a changing field and many (sometimes strange) things can your results:
  1. Some good insights are available in this Prompt Engineering Guide--Chain of Thought Prompting seems particularly promising and is part of what is deployed in OpenAIo1/Strawberry to make it better at complex reasoning
  2. Logic-of-Thought prompting can also be valuable
  3. Offering tips (which you have no way of paying) may improve results
  4. It has been reported that being polite can give better results
  5. You may be better answers to questions about math if you ask it to respond as if it were a character from Star Trek























  • Home
  • About
  • Contact