Prompt Engineering Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Unnamed: 0

A

Unnamed: 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. Understanding the Task
A

The first step in prompt engineering is understanding the task at hand. This involves defining the problem, determining the output format, and understanding the information that the model needs to provide.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. Initial Prompt Design
A

Once you understand the task, you can design an initial prompt. This generally involves writing a text input that clearly and unambiguously requests the information you want. For instance, if you’re asking a model to translate English text to French, your prompt might be “Translate the following English text to French

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. Testing and Iteration
A

After designing an initial prompt, test it on your model and evaluate the output. This will often involve multiple iterations of testing and tweaking the prompt to improve the model’s responses.

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

Remember that the model doesn’t have access to any context outside the text input. Anything that you want the model to consider must be included in the prompt or in the model’s training data. This might include information about the desired formality level, specific assumptions to make, or particular contexts to consider.

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

For tasks that involve generating many different outputs, you might consider designing a template for your prompts. This can help ensure consistency across prompts and can make it easier to generate a large number of prompts.

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

If your model is not generating the desired output, try making your prompt more explicit. This might involve specifying the format of the output, providing an example of a correct response, or giving more detailed instructions.

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

Be aware that the model can have biases based on the data it was trained on. These biases can influence its responses to certain prompts. To mitigate this, try to design prompts that are as neutral and objective as possible.

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

Finally, remember that prompt engineering is often an iterative process. It can take many rounds of testing and refinement to find the most effective prompts for a particular task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. Multi-task Learning and Prompts
A

If your model has been trained on multiple tasks, it can sometimes be helpful to remind the model of the specific task it should be focusing on. This can be done by including a brief description of the task in the prompt.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. Few-Shot Prompts
A

In few-shot learning, the model is given a few examples of a task and then asked to perform the task on a new input. Designing few-shot prompts involves not only crafting the prompt for the new input but also selecting or creating the examples that will be given to the model.

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