ankur-singh/nexusraven-v2-13b 📝✓🔢 → 📝

▶️ 34 runs 📅 Jun 2024 ⚙️ Cog 0.9.10 🔗 GitHub
function-calling text-generation

About

Best Open-Source Model for Function Calling

Example Output

Prompt:

"

Function:
def get_weather_data(coordinates):
"""
Fetches weather data from the Open-Meteo API for the given latitude and longitude.

Args:
coordinates (tuple): The latitude of the location.

Returns:
float: The current temperature in the coordinates you've asked for
"""

Function:
def get_coordinates_from_city(city_name):
"""
Fetches the latitude and longitude of a given city name using the Maps.co Geocoding API.

Args:
city_name (str): The name of the city.

Returns:
tuple: The latitude and longitude of the city.
"""

"Setting: Allowed to issue multiple calls with semicolon
"

User Query: "What's the weather like in Seattle right now?

"

Output

Call: get_weather_data(coordinates=get_coordinates_from_city(city_name='Seattle'))
Thought: The function call get_weather_data(coordinates=get_coordinates_from_city(city_name='Seattle')) answers the question "What's the weather like in Seattle right now?" by following these steps:

  1. get_coordinates_from_city(city_name='Seattle'): This function call fetches the latitude and longitude of the city "Seattle" using the Maps.co Geocoding API.
  2. get_weather_data(coordinates=...): This function call fetches the current weather data for the coordinates returned by get_coordinates_from_city.

Therefore, the function call get_weather_data(coordinates=get_coordinates_from_city(city_name='Seattle')) answers the question "What's the weather like in Seattle right now?" by first fetching the coordinates of the city "Seattle" and then fetching the current weather data for those coordinates.

Performance Metrics

3.48s Prediction Time
3.52s Total Time
Input Parameters
prompt (required) Type: string
formatted prompt
thought Type: booleanDefault: false
return LLM's Thought for function calling
max_tokens Type: integerDefault: 1024
max tokens
temperature Type: numberDefault: 0.001
temperature
Output Schema

Output

Type: string

Version Details
Version ID
2390dd3af8de3535e5c9d226df32cf147bc3b034df686a6ce18be0ca9175df64
Version Created
June 28, 2024
Run on Replicate →