exam questions

Exam AWS Certified AI Practitioner AIF-C01 All Questions

View all questions & answers for the AWS Certified AI Practitioner AIF-C01 exam

Exam AWS Certified AI Practitioner AIF-C01 topic 1 question 5 discussion

A company is using a pre-trained large language model (LLM) to build a chatbot for product recommendations. The company needs the LLM outputs to be short and written in a specific language.
Which solution will align the LLM response quality with the company's expectations?

  • A. Adjust the prompt.
  • B. Choose an LLM of a different size.
  • C. Increase the temperature.
  • D. Increase the Top K value.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
0c2d840
Highly Voted 1 month, 1 week ago
Selected Answer: A
B not correct - The size of LLM may not affect the size of the output. C not correct - Temperature controls the creativity of the output, not size of the output. D not correct - Top-K controls number of next possible tokens, not size of the output. A is correct - In the prompt itself we can control various attributes of the output like size, language etc.
upvoted 6 times
...
Moon
Most Recent 1 week, 3 days ago
Selected Answer: A
A: Adjust the prompt. Explanation: The behavior of a large language model (LLM) can be significantly influenced by the prompt it receives. To make the outputs short and written in a specific language, you can adjust the prompt to explicitly instruct the model to produce concise responses and specify the desired language. For example: "Provide a brief recommendation in Spanish." "Give a short response in French." This is the most direct way to align the output with the company’s expectations without requiring modifications to the model or its parameters.
upvoted 1 times
...
Aryan_10
2 weeks, 1 day ago
Selected Answer: A
Adjusting the prompt
upvoted 1 times
...
jove
2 months ago
Selected Answer: A
A is correct
upvoted 3 times
...
sacha12
2 months, 1 week ago
Selected Answer: A
Adjusting the prompt will only help
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago