
Summary
Mistral 7B version 3 introduces native support for function calling, enhancing its utility beyond basic chat interactions. This capability allows the model to interact with external APIs, enabling it to retrieve real-time information such as weather conditions or stock market data. The process involves the model first assessing whether it can fulfill a user query with its internal knowledge or if it needs to access external tools. If external tools are required, the model selects the appropriate functions based on the user’s request.
The discussion highlights two primary testing scenarios: multi-function calling and nested function calling. In multi-function calling, the model successfully executes separate operations using different functions based on a single user query. For instance, when asked about the weather in Paris and the time in San Francisco, the model can independently call the respective functions for each piece of information. Nested function calling, on the other hand, involves a sequence where the output of one function serves as the input for another. An example provided illustrates how the model can retrieve the current temperature in Celsius and then convert it to Fahrenheit in a single user query.
The implementation of these functions is facilitated through a Google Colab notebook, which allows users to run the model on powerful hardware. The process includes downloading necessary packages and setting up the model for inference. The discussion emphasizes the importance of using system messages to ensure that outputs from function calls are correctly formatted, particularly when dealing with dependent function calls. Overall, Mistral v3 demonstrates significant advancements in function calling capabilities, making it a more versatile tool for users.
Show Notes
Learn more about your ad choices. Visit megaphone.fm/adchoices
More from Prompt Engineering
Learn more about your ad choices. Visit megaphone.fm/adchoices
Learn more about your ad choices. Visit megaphone.fm/adchoices
Learn more about your ad choices. Visit megaphone.fm/adchoices
Learn more about your ad choices. Visit megaphone.fm/adchoices
Learn more about your ad choices. Visit megaphone.fm/adchoices