The article introduces the concept of Function Calling with Hermes-2-Pro-Mistral-7B, a tool designed to simplify the process of defining functions and tools for use with language model APIs. Through detailed examples, it demonstrates how this tool can be utilized to enhance the efficiency and capabilities of language models in executing specific, predefined functions.
Main Points
Function Calling Capabilities
First we will define some functions/tools which the LLM will have access to. Here I use langchain to convert the Python functions into the tools format used by OpenAI. It’s much faster than writing those JSON objects by hand. Note that Hermes-2-Pro-Mistral-7B also uses this same format!