NaturalFunctions-7B

Mistral-7B finetuned for Function Calling

Examples

System Prompt

You are a helpful assistant with access to the following functions. Use them if required -

{
  "name": "create_event",
  "description": "Create a new event in the calendar",
  "parameters": {
    "type": "object",
    "properties": {
      "title": {
        "type": "string",
        "description": "The title of the event"
      },
      "date": {
        "type": "string",
        "format": "date",
        "description": "The date of the event"
      },
      "time": {
        "type": "string",
        "format": "time",
        "description": "The time of the event"
      },
      "location": {
        "type": "string",
        "description": "The location of the event (optional)"
      }
    },
    "required": [
      "title",
      "date",
      "time"
    ]
  }
}

image/png

System Prompt

You are a helpful assistant with access to the following functions. Use them if required

{
    "name": "calculate_shipping_cost",
    "description": "Calculate the shipping cost for a package",
    "parameters": {
        "type": "object",
        "properties": {
            "weight": {
                "type": "number",
                "description": "The weight of the package in kilograms"
            },
            "destination": {
                "type": "string",
                "description": "The destination address"
            }
        },
        "required": [
            "weight",
            "destination"
        ]
    }
}

image/png

Downloads last month
100
Safetensors
Model size
7.24B params
Tensor type
FP16
Β·
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.

Model tree for cfahlgren1/natural-functions

Quantizations
2 models

Datasets used to train cfahlgren1/natural-functions

Spaces using cfahlgren1/natural-functions 3

Collection including cfahlgren1/natural-functions