AIF-C01 · Question #250
A grocery store wants to create a chatbot to help customers find products in the store. The chatbot must check the inventory in real time and provide the product location in the store. Which prompt…
For a chatbot that needs to check real-time inventory and provide product locations, Reasoning and Acting (ReAct) prompting is the appropriate technique.
Question
A grocery store wants to create a chatbot to help customers find products in the store. The chatbot must check the inventory in real time and provide the product location in the store. Which prompt engineering technique should the store use to build the chatbot?
Options
- AZero-shot prompting
- BFew-shot prompting
- CLeast-to-most prompting
- DReasoning and acting (ReAct) prompting
Why each option
For a chatbot that needs to check real-time inventory and provide product locations, Reasoning and Acting (ReAct) prompting is the appropriate technique.
Zero-shot prompting relies solely on the LLM's pre-trained knowledge without any examples or external tools, which is insufficient for real-time inventory checks and location lookups.
Few-shot prompting provides a few examples in the prompt to guide the model's response style or format but does not inherently equip it with the ability to perform external actions or retrieve real-time data.
Least-to-most prompting is a technique for breaking down complex problems into a series of simpler subproblems, which helps with reasoning but doesn't inherently facilitate external tool use for real-time data retrieval.
Concept tested: Prompt engineering for external tool use
Source: https://docs.aws.amazon.com/bedrock/latest/userguide/agents.html
Topics
Community Discussion
No community discussion yet for this question.