PromptEngineering Flashcards

1
Q

The act of developing, designing and optimizing prompts to enhance the output of foundation models is called ____.

A

prompt engineering

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

Improved prompting techniques consists of what four areas?

A
  • instructions: as task for the model to do
  • context: external information to guide the model
  • input data: the input for which you want a response
  • output indicator: the output type or format
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

____ prompting is a technique where you explicitly instruct the model on what not to include or do in its response.

A

Negative

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

Negative prompting help to do what three things?

A

avoid unwanted content, maintain focus, enhance clarity

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

The model’s ____ determine how the model should behace and reply.

A

system prompts

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

A model’s ____ setting controls the creativity of the model’s output and can range from 0 to 1.

A

temperature; the lower the setting, the outputs are more conservative, repetitve, focused on most likely responses; the higher the setting, the more diverse, createive and unpredictable and maybe less coherent.

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

A model’s ____ setting determines which likely words will be selected (if .25 for example, it will consider th e 25% most likely words).

A

Top P; a low number will make a more coherent response, a high number considers a broad range of possible words and possible more creative an diverse output

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

A model’s ____ setting limits the number of probable words to select from.

A

Top K; a low number leads to more coherent response and less probable words. A high number has more probable words and more diverse and creative output.

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

A model’s ____ sets a maximum length on the answer.

A

length

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

A model’s ____ are tokens that signal the model to stop generating output.

A

stop sequences

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

A model’s prompt ____ is how fast the model responds.

A

latency

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

True/False: Prompt latency is not impacted by Top P, Top K or Temperature.

A

t

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

List 4 parameters that can impact prompt latency.

A

model size, model type, number of tokens in the input, number of tokens in the output

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

____ prompting is to present a task to the model without providing examples or explicit training for that specific task.

A

Zero-Shot

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

With zero-shot prompting, you fully rely on the model’s ____.

A

general knowledge

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

When using ____ prompting, the larger and more capable the FM, the more likely you’ll get good results.

A

zero-shot

17
Q

____ prompting provides examples of a task to the model to guide its output.

A

Few-shots (if only one example is provided, its called one-shot or single-shot)

18
Q

With ____ prompting, we divide the task into a sequence of reasoning steps, leading to more structure and coherence.

A

Chain of Thought

19
Q

When you want to solve a problem that usually requires several steps, its helpful to use the ____ prompting technique by including a sentence like “think step by step”.

A

Chain of Thought

20
Q

Prompt ____ can be used to simplify and standardize the process of generating prompts.

A

templates

21
Q

Prompt templates can help with :

a) processes user input text and output prompts from FMs
b) orchestrates between the FM, action groups, and knowledge bases
c) formats and returns responses to the user

A
22
Q

True/False: Prompt templates can be used with Bedrock Agents.

A

t

23
Q

You can protect your prompt templates against ____ by adding explicit instructions to ignore any unrelated or potential malicious content.

A

prompt injections