Writing effective prompts

Understanding ChatGPT

James Chapman

Curriculum Manager, DataCamp

Garbage in, garbage out

Garbage being thrown into a machine and producing more garbage.

Understanding ChatGPT

How does ChatGPT interpret a prompt?

Prompt for writing a job description.

Understanding ChatGPT

How does ChatGPT interpret a prompt?

Prompt for writing a job description.

1. Identify the topic

 

Job description, data scientist, and New York are highlighted, ChatGPT is identifying the topic of the prompt.

Understanding ChatGPT

How does ChatGPT interpret a prompt?

Prompt for writing a job description.

2. Understand the prompt

 

The verb, write, is highlighted, as ChatGPT begins to understand the prompt.

Understanding ChatGPT

3. Generate response

Prompt and response of a job description for a data scientist.

Understanding ChatGPT

Prompt engineering

 

  • Prompt engineering is the process of writing prompts to maximize the quality and relevance of the response

A prompt engineer.

Understanding ChatGPT

Writing tips for prompt engineering

 

Be clear and specific

  • Include any necessary information
  • Example: in a summarizing task, specify the desired length

A prompt engineer.

 

Keep it concise

  • Remove any information that doesn't provide useful context

 

Use correct grammar and spelling

  • ChatGPT uses grammar when interpreting the task
Understanding ChatGPT

Provide examples if necessary...

  • Can be a much quicker way of providing context

 

Example: Generating example customers

  • Want the form:

Full Name, Age (Occupation)

Understanding ChatGPT

Prompt and response of example names and occupations.

Understanding ChatGPT

Prompt and response of example names and occupations.

Understanding ChatGPT

Let's practice!

Understanding ChatGPT

Preparing Video For Download...