A company built an Amazon Bedrock AI assistant to suggest products, but its responses are often generic or irrelevant. Which prompt-engineering technique is most likely to improve the relevance of the assistant's replies?
Choose an answer
Tap an option to check your answer.
Correct answer: Use few-shot prompting to include domain-specific context and clear instructions..
Why this is the answer
Few-shot prompting provides the model with examples of desired input-output pairs, along with clear instructions and domain-specific context. This helps the model understand the expected format and content of relevant responses, significantly improving accuracy and reducing generic replies. Chain-of-thought prompting is for complex reasoning, not primarily for relevance, and hidden reasoning steps would not override explicit instructions. Changing conversational style doesn't inherently improve relevance. Zero-shot prompting provides no examples, making it less effective for improving relevance compared to few-shot when the model struggles with generic outputs.
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