Learn Before
Example of a Prompt for LLM Tool Use
An example of how to prompt a Large Language Model for tool use involves providing both an instruction and a specific question. For instance, to find out where the 2028 Olympics will be held using a web search tool, the LLM can be given the following complete prompt:
Your task is to answer the following question. You may use external tools, such as web search, to assist you.
Where will the 2028 Olympics be held?
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Computing Sciences
Foundations of Large Language Models Course
Related
Example of a Prompt for LLM Tool Use
An AI assistant is powered by a large language model whose knowledge is based on a fixed dataset from over a year ago. To enhance its functionality, developers have integrated a tool that allows it to perform live web searches. For which of the following user requests would the use of this web search tool be most critical for providing a correct and useful response?
E-commerce Chatbot Malfunction
Analyzing Query Requirements for an LLM
Learn After
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