
Explanation:
The correct answer is D: Reasoning and acting (ReAct) prompting. This prompt engineering technique is specifically designed for scenarios where an AI system needs to perform both cognitive reasoning and external actions in a sequential manner.
Why ReAct prompting is optimal:
Why other options are less suitable:
The key distinction is that ReAct prompting uniquely addresses both the reasoning aspect (understanding customer queries) and the acting aspect (querying real-time inventory systems), making it the most appropriate choice for this use case where dynamic, real-world data integration is essential.
Ultimate access to all questions.
A grocery store plans to develop a chatbot that assists customers in locating products within the store. The chatbot needs to access real-time inventory data and give the product's specific store location.
Which prompt engineering technique should be employed to construct this chatbot?
A
Zero-shot prompting
B
Few-shot prompting
C
Least-to-most prompting
D
Reasoning and acting (ReAct) prompting
No comments yet.