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 140 discussion

A company is using a large language model (LLM) on Amazon Bedrock to build a chatbot. The chatbot processes customer support requests. To resolve a request, the customer and the chatbot must interact a few times.

Which solution gives the LLM the ability to use content from previous customer messages?

  • A. Turn on model invocation logging to collect messages.
  • B. Add messages to the model prompt.
  • C. Use Amazon Personalize to save conversation history.
  • D. Use Provisioned Throughput for the LLM.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
kopper2019
17 hours, 32 minutes ago
Selected Answer: B
B is the correct answer. Here's why: Adding previous messages to the prompt allows the LLM to maintain context across multiple interactions.
upvoted 1 times
...
Jessiii
1 day, 15 hours ago
Selected Answer: B
Add messages to the model prompt. By including the conversation history in the model's prompt, the LLM can maintain context and reference previous interactions to provide coherent and relevant responses. This approach ensures that the chatbot can understand and respond to the customer's requests based on the entire conversation history.
upvoted 1 times
...
jerry00218
1 week, 2 days ago
Selected Answer: B
Answer: B. Add messages to the model prompt Large language models (LLMs) typically rely on the context that is provided directly in the input prompt when generating a response. To give the model the ability to use content from previous customer messages, you need to include those past messages in the prompt for each new inference call. This approach ensures that the model has the necessary context to respond accurately based on prior interactions.
upvoted 1 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