Prompt Engineering Flashcards

1
Q

What is prompt engineering?

A

Developing, designing, and optimizing prompts to enhance the output of your foundation model.

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

What are the four main prompt engineering techniques?

A

Instructions
Context
Input Data
Output Indicator

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

What is negative prompting?

A

It helps to avoid unwanted content, maintains focus and clarity. It explicitly states what NOT to include.

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

How is text generated in an LLM?

A

By weights or probabilities on the next word.

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

What is the Model System Prompt configuration?

A

It dictates how the model should behave and reply

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

What does the Model Temperature configuration do?

A

It sets the creativity of the model’s output. Low values are more conservative and repetitive. High values are more diverse and creative, but can be unpredictable and maybe less coherent. 0 is low and 1 is high

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

What does the Model Top P configuration do?

A

It sets the word selection of the model. Low values like .25 consider 25% of the most likely words. High values like .99 consider a broader range, possibly more creative and diverse.

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

What does the Model Top K configuration do?

A

Limits the number of probably words. Low K values are more coherent. High K more probable words, more diverse and creative.

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

What does the Model Length configuration do?

A

Maximum length of the answer

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

What does the Model Stop sequences configuration do?

A

Tokens that signal the model to stop generating output.

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

What is prompt llatency?

A

How fast the model responds

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

What impacts prompt latency?

A

Model size
Model type
Number of tokens in the input
Number of tokens in the ouput

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

Can Top P, Top K, or Temperature impact model latency?

A

No.

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

What is zero-shot prompting?

A

It presents a task to the model without providing examples or explicit training for that specific task.

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

What is few-shot prompting?

A

You provide examples of a task to the model to guide the output.

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

What is chain of thought prompting?

A

Divide the task into a sequence of reasoning steps, leading to more structure and coherence. E.g., First, Then, Next, Finally

17
Q

What are prompt templates?

A

They simplify and standardize the process of generating prompts.

18
Q

Can prompt templates be used with Bedrock Agents?

A

Yes