A company wants to use a large language model (LLM) on Amazon Bedrock for sentiment analysis. The company wants to classify the sentiment of text passages as positive or negative.
Which prompt engineering strategy meets these requirements?
Suggested Answer: A
Get Premium AIF-C01 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
33 comments · newest first
HE
Heidy
11 months ago
Wait, can LLMs really classify sentiment accurately?
AH
Ahmad
11 months ago
D just confuses the model, right?
BO
Bo
11 months ago
C seems too vague, how will it know?
MA
Maurine
11 months ago
I think B is overkill for this task.
CA
Carla
12 months ago
Option A is definitely the best choice!
JO
Johnetta
12 months ago
I recall that unrelated examples could confuse the model, so option D seems like a bad choice for this task.
CE
Celestina
1 year ago
I feel like option C might not give the model enough information to classify the sentiment accurately.
WY
Wynell
1 year ago
I'm not entirely sure, but I remember a practice question where giving context really helped improve the results.
FI
Fidelia
1 year ago
I think option A makes the most sense since providing examples could help the model understand what we're looking for.
LA
Laurel
1 year ago
I think the key here is to give the LLM some context and examples to work with. Providing the new text passage without any additional information seems like it would be too open-ended. I'm leaning towards the first option, but I'll double-check my reasoning before answering.
AB
Abraham
1 year ago
I'm a little confused by the options here. I'm not sure if providing a detailed explanation of sentiment analysis and LLMs would actually help the model, or if including unrelated tasks would be useful. I'll have to think this through carefully.
AH
Ahmad
1 year ago
Okay, let me think this through. I think providing examples of positive and negative text passages in the prompt, along with the new passage to be classified, would be the best way to guide the LLM to accurately determine the sentiment. That's my strategy for this question.
AF
Afton
1 year ago
This seems like a pretty straightforward prompt engineering question. I'm pretty confident I can figure this out.
AN
Anjelica
1 year ago
Hmm, I'm a bit unsure about this one. I know prompt engineering is important for getting good results from LLMs, but I'm not sure which approach would work best for sentiment analysis.
FI
Filiberto
1 year ago
Okay, I've got this. The key reasons to use Jest for Lightning web components are to verify basic user interactions, ensure events are firing correctly, and test how different components work together. Gotta cover those core functionality areas.
WI
Willie
2 years ago
Option F: Feed the LLM a diet of positive and negative emojis. It'll be the most efficient sentiment analysis tool ever!
AR
Arlean
2 years ago
Option D? Really? Mixing in other tasks is just going to confuse the poor thing. Keep it simple, people!
CR
Crista
2 years ago
C'mon, we're not writing a novel here. Just throw the new text at the LLM and let it figure it out! Option C all the way.
VA
Valentine
2 years ago
Let's trust the LLM to classify the sentiment accurately with just the text.
MI
Mila
2 years ago
Exactly, keeping it simple with option C is the way to go.
VE
Verdell
2 years ago
Yeah, no need to complicate things with extra examples or explanations.
CE
Celestina
2 years ago
I agree, just give the LLM the text and let it do its thing.
QU
Queen
2 years ago
I agree, Option A is the most straightforward approach. Who wants to read a lengthy explanation when you can just give some examples?
LO
Long
2 years ago
I think providing examples with corresponding labels is the most effective strategy for sentiment analysis.
JA
Jarod
2 years ago
I agree, examples are much more helpful than a long explanation.
GE
Gertude
2 years ago
Option A is definitely the way to go. Examples make it so much easier to understand.
RO
Royal
2 years ago
Option A seems like the way to go. Providing example text passages with labels should help the LLM understand the task better.
GE
Gerry
2 years ago
User 3: Definitely. It's important to give the model context to understand the task.
RE
Refugia
2 years ago
User 2: I agree. It will provide clear guidance for sentiment analysis.
MA
Markus
2 years ago
User 1: Option A seems like the best choice. Giving examples with labels will help the LLM learn.
WA
Wayne
2 years ago
I prefer option B. Understanding how LLMs work is crucial for accurate sentiment analysis.
CE
Celia
2 years ago
I agree with Filiberto. Providing examples will help the model learn better.
FI
Filiberto
2 years ago
I think option A is the best strategy.