Codecademy Logo

Prompt Engineering with ChatGPT

Prompt Engineering and Word Choice

When defining a Generative AI prompt, it is essential to use clear, straightforward language. Confusing and unusual word choices may result in output that is incorrect or not what a user is looking for.

Instead of:

My team is interested in X, tell me about that

Consider:

Provide a summary of X, including its history, features, and configuration.

Prompt Engineering and Tone, Format, and Audience

Defining a clear purpose for a prompt can assist in getting useful results. Think about:

Tone: How do you want the output to sound? Funny? Professional?

Format: How do you want the output structured? Bullet list? Paragraph? An essay?

Audience: Who is this for? Do you want something for children? Beginners? Experts?

Prompt Engineering and Context

Providing context to generative AI tools can each help in creating a more useful response. Context includes:

  • Background information
  • Specific Requirements
  • Constraints

Adding Examples to Prompts

Providing examples of what is wanted will allow generative AI tools to produce more similar results.

Learn more on Codecademy