Module 3 Flashcards

Discover the Art of Prompting

1
Q

What is prompt engineering?

A

The practice of developing effective prompts that elicit useful output from generative AI.

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

What is an LLM?

A

A large language model (LLM) is an AI model trained on large amounts of text to identify patterns between words, concepts, and phrases, so that it can generate responses to prompts.

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

How do LLMs learn to generate useful responses to prompts?

A

LLMs are trained on millions of sources of text, including books, articles, websites, and more, to learn patterns and relationships in human language. The more high-quality data the model receives, the better its performance.

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

How do LLMs predict the next word in a sequence?

A

LLMs use statistics to analyze the relationships between words in a sequence and compute probabilities for thousands of possible next words. They predict the next word based on the highest probability.

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

What is a simple example of how an LLM predicts the next word?

A

In the incomplete sentence “After it rained, the street was…”, an LLM might predict the next word as “wet” (high probability), “clean” (lower probability), or “dry” (extremely low probability).

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

What are some limitations of LLMs?

A

Limitations of LLMs include biases in training data, insufficient content about specific topics, and the tendency to hallucinate or generate factually inaccurate text.

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

What is an example of hallucination in LLMs?

A

If an LLM provides incorrect information about a company’s history, such as the wrong founding date or number of employees, this is an example of hallucination.

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

What are the components of a good prompt framework for generative AI?

A

Task,
Context,
References,
Evaluate,
Iterate.

(re-read article maybe?)

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

What are some common uses of LLMs to boost productivity and creativity?

A

Content creation, summarization,
classification,
extraction,
translation,
editing,
problem-solving.

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

What are 3 ways to make prompts more effective?

A

Consider what you want the LLM to produce -
The LLM will generate more useful output when you include a specific instruction in your prompt, like create, summarize, classify, extract, translate, edit, or solve.

Provide necessary context - The LLM will generate more useful output when you include detailed instructions, with specific guidance about the style or format of the output you want.

Assign the LLM a role, job, or function to reinforce the purpose of the prompt and help guide the LLM to produce useful output.

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

What is an iterative process?

A

It involves creating a first version, evaluating it, and improving upon it in subsequent versions until the desired outcome is achieved.

It should be applied to prompt engineering.

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

Why might different LLMs respond differently to similar prompts?

A

Each LLM is developed with unique training data and programming techniques, leading to variations in background knowledge and response capabilities.

(re-watch video?)

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

What does the term “shot” mean in prompt engineering?

A

“shot” is a synonym for “example.”

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

What are the different names for prompting techniques based on the number of examples given to the LLM?

A

Zero-shot prompting (no examples),
one-shot prompting (one example),
few-shot prompting (two or more examples).

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

What is chain-of-thought prompting?

A

A technique that involves requesting a large language model to explain its reasoning processes step by step, from input to output.

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

What is prompt chaining?

A

A technique that links connected prompts together, using the output from one prompt as input for the next to solve complex tasks iteratively.

17
Q

What are some challenges of longer prompt chains?

A

Inconsistent responses, overlooking important details from earlier prompts, and difficulty maintaining the overall objective of the task.

18
Q

What strategies can help overcome the challenges of longer prompt chains?

A

Use checkpoints, work on sub-tasks, and recap and redirect the AI tool if it deviates from the original goal.