Prompt Engineering Techniques Flashcards

Develop the ability to craft effective prompts to optimize AI outputs. (29 cards)

1
Q

What is prompt engineering in the context of AI?

A

It is the process of designing instructions or input prompts to guide AI models, like language models, to produce desired outputs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Fill in the blank:

Prompt engineering is commonly used with ______ models.

A

language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or False:

A prompt is a set of instructions given to an AI to guide its response.

A

True

A prompt provides input or context that directs how an AI system, like a language model, should generate its output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is role prompting?

A

This involves specifying a role for the AI model to assume, such as acting as a teacher or a doctor, to influence its responses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why is role prompting useful?

A

It helps the AI model generate more contextually appropriate responses by aligning its output with the assigned role.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define:

zero-shot prompting

A

It is when an AI model is asked to perform a task without any specific examples provided in the prompt.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True or False:

Few-shot prompting provides the AI with multiple examples before asking it to perform a task.

A

True

Few-shot prompting involves showing the AI a few examples within the prompt to help it understand the desired task or format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Compare zero-shot and few-shot prompting.

A
  • Zero-shot prompting does not give examples before the task.
  • Few-shot prompting provides a few examples to guide the AI.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Fill in the blank:

Few-shot prompting is often used to improve the ______ of AI responses.

A

accuracy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is prompt chaining?

A

It involves using a series of prompts in sequence, where each prompt builds on the previous response, to achieve a more complex task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Give an example of a task that might benefit from prompt chaining.

A

Writing a story by first generating an outline, then expanding each section into detailed paragraphs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are structure tips in prompt engineering?

A

They refer to guidelines for formatting and organizing prompts to enhance clarity and effectiveness in guiding AI models.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True or False:

Clear and specific prompts generally lead to better AI responses.

A

True

Well-defined prompts reduce ambiguity, helping AI generate more accurate and relevant responses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Fill in the blank:

Using ______ language in prompts can help improve AI understanding.

A

concise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why is it important to avoid ambiguity in prompts?

A

Ambiguity can lead to unclear or unintended AI responses, as the model may misinterpret the instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which prompting technique would you use to teach an AI model how to solve a new type of problem with minimal examples?

A

few-shot prompting

Few-shot prompting provides examples that help the AI model learn quickly from limited data.

17
Q

Explain the benefit of using examples in a prompt.

A

Examples help provide context and set expectations for the AI, increasing the likelihood of accurate and relevant responses.

18
Q

What is a potential downside of zero-shot prompting?

A

The AI model may struggle to generate accurate responses due to a lack of context or examples to guide it.

19
Q

In role prompting, how can specifying a role influence AI output?

A

Specifying a role can guide the tone, style, and content of the AI’s response to better match what is expected from that role.

20
Q

What is one scenario where prompt chaining might be particularly effective?

A

In complex tasks like generating detailed reports, where each section builds on the previous one.

21
Q

True or False:

Prompt chaining can only be used for writing tasks.

A

False

Prompt chaining can be applied to various tasks, including problem-solving and data analysis.

22
Q

Fill in the blank:

To improve prompt clarity, it’s helpful to use ______ structure and avoid overly complex sentences.

23
Q

How can feedback loops benefit prompt engineering?

A

It allows developers to refine prompts based on AI performance, improving future responses.

24
Q

What role does specificity play in prompt engineering?

A

It helps guide the AI model to generate more relevant, targeted, and contextually appropriate responses by reducing ambiguity in the prompt.

25
Give an **example** of a structured prompt.
This might include a clear task description, example inputs, and desired output format.
26
Why might an AI model need **different prompts for similar tasks**?
Different prompts can **account for variations** in task complexity or required output specificity.
27
Explain how prompt engineering can **affect AI creativity**.
While structured prompts guide AI responses, overly rigid prompts might **limit its creative potential**.
28
In what situation might you prefer **zero-shot prompting** over few-shot prompting?
When a task is straightforward and examples are **unnecessary**, or when data for examples is **not available**.
29
What is the **main goal** of prompt engineering?
Effectively guide AI models to **produce desired and meaningful outputs**.