Learn Before
Improving a Prompt for Tool Use
A developer is building an application where a language model needs to access a company's internal employee database to answer questions. The developer uses the following prompt to find an employee's email address: Find the email address for John Smith. The developer observes that the model often fails to use the database tool and instead makes up an answer or states it cannot access private information. Analyze the provided prompt. What key component is missing that would make it more effective at triggering the use of the external database tool? Rewrite the prompt to improve its reliability.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Computing Sciences
Foundations of Large Language Models Course
Evaluation in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Example of an LLM-Generated Tool Call
A user wants to ask a language model, which has access to a live weather tool, for the current temperature in London. Which of the following prompts is best structured to ensure the model uses its tool to get the real-time information?
Improving a Prompt for Tool Use
Diagnosing a Failed Tool-Use Prompt