A chatbot uses an Amazon Bedrock LLM for intent detection and the team plans to apply few-shot learning to improve intent classification. What additional data should they include in prompts to support few-shot intent detection?
Choose an answer
Tap an option to check your answer.
Correct answer: Pairs of user messages and the correct user intents.
Why this is the answer
Few-shot learning for intent detection requires providing the LLM with examples of user input and their corresponding correct intents. This helps the model learn the mapping between user language and the desired intent without extensive fine-tuning. Therefore, including pairs of user messages and their correct user intents in the prompt directly supports this learning. Incorrect options: Pairs of chatbot responses and their correct user intents: This focuses on the chatbot's output, not the user's intent, and doesn't provide the necessary input-to-intent mapping. Pairs of user messages and the correct chatbot responses: This is more relevant for response generation or dialogue management, not specifically intent detection. Pairs of user intents and the correct chatbot responses: This also focuses on output generation rather than the initial intent classification from user input.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed