SuperAPIAI Directory

Nexusflow/NexusRaven-V2-13B · Hugging Face

huggingface.co · AI developer platforms

NexusRaven-V2-13B is a 13-billion-parameter open-source function-calling large language model developed by Nexusflow. It can generate function calls based on a list of Python functions provided by the user (including function signatures and docstrings), supports single calls, nested calls, and parallel calls, and can generate detailed explanations of the calls. The model is claimed to surpass GPT-4 by about 7% in function-calling success rate, and its training data does not involve data generated by proprietary LLMs, so it can be used commercially. The model is suitable for scenarios that require converting natural language instructions into function calls, such as API integration and tool calling.

Open website Alternatives

About this tool

NexusRaven-V2-13B is a text generation model focused on function calling, with 13 billion parameters. It was released by Nexusflow on Hugging Face under the Nexusflow community license, which allows commercial use.

Purpose: The model's main purpose is to convert natural language queries into calls to given Python functions. The user provides a set of Python functions (including function signatures and docstrings), and the model can generate the corresponding function call code, supporting single-function calls, nested calls, and parallel calls.

Main capabilities:

  • Versatile function calling: It can handle single calls, nested calls, and parallel calls, and performs well in complex scenarios.
  • Fully explainable: The model can provide detailed explanations for the generated function calls; this feature can be disabled by setting a stop token to save inference tokens.
  • Performance: According to the official introduction, on human-generated use cases involving nested and composite functions, the function-calling success rate is 7% higher than GPT-4.
  • Generalization ability: The functions used in the evaluation did not appear in training.
  • Business-friendly: The training data does not contain data generated by proprietary LLMs such as GPT-4, so the model can be fully controlled when deployed in commercial applications.

Usage:

  • The model accepts a list of Python functions, and the functions must include signatures and appropriate docstrings. It is recommended to provide detailed, well-indented docstrings to improve accuracy.
  • It is recommended that all functions have parameters (required or optional), because the model performs better on functions with parameters.
  • It is recommended to set sampling=False and temperature to about 0.001.
  • If only the call needs to be generated without an explanation, the stop condition can be set to "<bot_end>"; otherwise the model will run until the stop token "</s>".
  • For parallel calls, a specific prompt can be added before the user query to "enable" parallel calls; otherwise the model mainly focuses on nested and single calls.
  • When handling irrelevant user queries, a "no-op" function with parameters can be specified.
  • The model can run on a GPU, and the official code examples and prompt templates are provided.
  • Packages and demos integrated with the OpenAI function-calling architecture and LangChain are also provided.

Applicable scenarios:

  • Applications that need to convert natural language instructions into function calls, such as API integration, tool calling, and automated workflows.
  • When the number of functions is large, it is recommended to use it with a retriever, because a large number of functions will fill the model's context window.

Limitations:

  • The model may generate incorrect calls, and appropriate safeguards need to be set up to catch abnormal behavior.
  • The generated explanations may be incorrect, and safeguards are likewise needed.
  • The model has a limited context window when the number of functions is large, so it needs to be used with a retriever.
  • Specific information such as fees, pricing, and platform support is not yet provided.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools