Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Creating a Prompt | Introducing ChatGPT
course content

Course Content

AI Powered Coding

Creating a PromptCreating a Prompt

A prompt is the input you provide to ChatGPT to guide its response.

Here are some tips for creating effective prompts:

  • Be Specific: Clearly state what you're asking or discussing to provide ChatGPT with the context for generating a relevant response. Avoid ambiguity and provide clear instructions or questions;
  • Provide Context: If necessary, provide additional context or background information to help ChatGPT better understand the topic or situation. This could include relevant details, examples, or explanations;
  • Ask Open-Ended Questions: Encourage ChatGPT to provide detailed responses by asking open-ended questions that invite exploration and discussion. Avoid yes/no questions and instead ask questions that require thoughtful responses;
  • Avoid Ambiguity: Try to avoid ambiguous or vague prompts that could lead to misunderstandings or irrelevant responses. Clearly define the topic or issue you want ChatGPT to address and provide specific guidance if needed.

Examples

Let's analyze the instances of effective and ineffective prompts.

Good Prompt

Prompt:

I'm planning a trip to Japan. Can you provide some recommendations for places to visit, local cuisine to try, and cultural experiences to explore?


Possible Output:

Absolutely! When visiting Japan, be sure to explore the vibrant streets of Tokyo, visit the historic temples in Kyoto, and experience the natural beauty of Hakone. Don't miss out on trying traditional dishes like sushi, ramen, and tempura, and immerse yourself in cultural activities such as tea ceremonies, sumo wrestling matches, and cherry blossom viewing.

Bad Prompt

Prompt:

Japan


Possible Output:

Without specific guidance or context, ChatGPT may struggle to provide a relevant response to such a broad prompt. The response generated could be incomplete or unrelated to the user's interests, such as "Japan is a country in East Asia"

The more details you provide, the more effective ChatGPT's assistance becomes.

Everything was clear?

Section 3. Chapter 3
course content

Course Content

AI Powered Coding

Creating a PromptCreating a Prompt

A prompt is the input you provide to ChatGPT to guide its response.

Here are some tips for creating effective prompts:

  • Be Specific: Clearly state what you're asking or discussing to provide ChatGPT with the context for generating a relevant response. Avoid ambiguity and provide clear instructions or questions;
  • Provide Context: If necessary, provide additional context or background information to help ChatGPT better understand the topic or situation. This could include relevant details, examples, or explanations;
  • Ask Open-Ended Questions: Encourage ChatGPT to provide detailed responses by asking open-ended questions that invite exploration and discussion. Avoid yes/no questions and instead ask questions that require thoughtful responses;
  • Avoid Ambiguity: Try to avoid ambiguous or vague prompts that could lead to misunderstandings or irrelevant responses. Clearly define the topic or issue you want ChatGPT to address and provide specific guidance if needed.

Examples

Let's analyze the instances of effective and ineffective prompts.

Good Prompt

Prompt:

I'm planning a trip to Japan. Can you provide some recommendations for places to visit, local cuisine to try, and cultural experiences to explore?


Possible Output:

Absolutely! When visiting Japan, be sure to explore the vibrant streets of Tokyo, visit the historic temples in Kyoto, and experience the natural beauty of Hakone. Don't miss out on trying traditional dishes like sushi, ramen, and tempura, and immerse yourself in cultural activities such as tea ceremonies, sumo wrestling matches, and cherry blossom viewing.

Bad Prompt

Prompt:

Japan


Possible Output:

Without specific guidance or context, ChatGPT may struggle to provide a relevant response to such a broad prompt. The response generated could be incomplete or unrelated to the user's interests, such as "Japan is a country in East Asia"

The more details you provide, the more effective ChatGPT's assistance becomes.

Everything was clear?

Section 3. Chapter 3
some-alt