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 3 months 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 8 times
...
Jessiii
Most Recent 2 weeks, 6 days ago
Selected Answer: A
Adjusting the prompt allows you to guide the model to produce responses that are more aligned with your desired output. By modifying the prompt, you can specify the length and language requirements more clearly. For example, you could ask the model to "Provide a short product recommendation in [specific language]." This is the most direct way to control the behavior of the LLM and ensure it meets the company’s needs.
upvoted 1 times
...
Moon
2 months 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 months, 1 week ago
Selected Answer: A
Adjusting the prompt
upvoted 1 times
...
jove
3 months, 4 weeks ago
Selected Answer: A
A is correct
upvoted 3 times
...
sacha12
4 months 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