Skip to Main Content

Law School Home

Generative AI: Prompt Engineering

PROMPT ENGINEERING

What is "prompt engineering" and why should I care?

Prompt engineering is the practice of crafting and refining input prompts or queries to effectively guide AI models to generate desired outputs. It involves creating clear, precise, and contextually relevant prompts to improve the accuracy, relevance, and quality of the AI's responses. 

Basics of Prompting

OpenAI's Prompt Engineering Guide

Introducing AI Prompt Worksheets for the Legal Profession

Questions to consider when drafting an effective legal prompt: 

  • Do I provide clear instructions on the goal or purpose of the prompt? (i.e. draft, summarize, ask, review)
  • What is the context of the legal situation or issue? Have I included the type of party, key terms, and/or points of law?
  • What is the desired type, format, and tone of the output?
  • Is there a clear jurisdiction and/or area of the law?