Skip to Main Content
John B. Coleman Library Ask A Librarian

Artifical intelligence: Writing Prompts for AI

Tips on Writing Prompts

Learn Prompting defines "prompt engineering" as "the process of communicating effectively with an AI to achieve desired results."

Using GenAI tools effectively requires that the user know the right questions to ask, and how to phrase them for the best results. Vague or generic questions generate vague or generic results. (In other words, garbage in, garbage out.)

Tips for crafting prompts to get the best results from chatbots:

  • Use the CLEAR Framework
    • Concise
    • Logical
    • Explicit
    • Adaptive
    • Reflective
  • Write clear instructions: be specific about the format of the output - number of words or paragraphs, writing style or tone, reading level, formatting such as bullet points, a table, html, css, etc. Treat the chatbot like a brand new assistant who is eager to please but doesn't know what they don't know.
  • Instruct the chatbot to take on an expert role: for example, "act as a mathematician" or "take on the role of a professional news blogger" or "I want you to act as a Linux terminal."
  • Provide the chatbot with examples or a reference text.
  • Split complex tasks into simpler subtasks. 
  • Beware hallucinations, or the chatbot confidently stating incorrect or made up information. If you are unfamiliar with the topic, check the chatbot's work. ChatGPT and other chatbots are notorious for making up citations to sources that simply do not exist. Bing, Google Search Generative Experience, or Perplexity may be better choices because they provide links to the websites they claim as information sources.  

The definitive guide to prompt engineering. Extensive but easy-to-read online guide to crafting prompts. Each chapter is only a few paragraphs and includes illustrations and hands-on examples. Great as a reference - does not need to be read all at once or sequentially.

Thorough overview with examples of different types of prompts. Serves as a good one-page cheatsheet to Learn Prompting.

more...

OpenAI's guide to strategies and tactics for getting better results from GPTs offers six strategies for getting better results

more...

Introduces the CREATE Framework for High Quality Prompt Craft in AI Tools:

Collection of pre-written prompts.

Generates a ChatGPT prompt based on choices in dropdown menus.

 Article taken from UCSD Libguide, additional links added.  See the listed url for more information: https://ucsd.libguides.com/c.php?

John B. Coleman Library
Mailing Address: P.O. Box 519, MS 1040, Prairie View, Texas 77446
Physical Address: L.W. Minor St. / University Drive, Prairie View, Texas 77446
Reference: (936) 261-1535, Circulation: (936) 261-1542
Email: askalibrarian@pvamu.edu

Library Hours