hussainbillah's picture
Publish function-calling-package-delivery (mirror of Kaggle soniciumquantumlab/function-calling-package-delivery)
b4cde00 verified
|
Raw History Blame Contribute Delete
10.2 kB
---
license: cc-by-nc-sa-4.0
language:
- en
pretty_name: "Function-Calling SFT: Package Delivery Tools"
task_categories:
- text-generation
tags:
- synthetic
- sonicium-quantum-lab
- artificial-intelligence
- software
- transportation
- nlp
- text-generation
- function-calling
- tool-use
- llm-agents
- llm-fine-tuning
configs:
- config_name: default
data_files:
- split: train
path: "function_calling_package_delivery.jsonl.gz"
---
# Function-Calling SFT: Package Delivery Tools
> **Hugging Face mirror** of the Kaggle dataset [soniciumquantumlab/function-calling-package-delivery](https://www.kaggle.com/datasets/soniciumquantumlab/function-calling-package-delivery), created by **Hussain Billah** ([ORCID 0009-0009-5686-619X](https://orcid.org/0009-0009-5686-619X)) and published by **Sonicium Quantum Lab Ltd.**
> Data files here are gzip-compressed copies of the original files (`function_calling_package_delivery.csv.gz`, `function_calling_package_delivery.jsonl.gz`) and load directly with the `datasets` library:
>
> ```python
> from datasets import load_dataset
> ds = load_dataset("SoniciumQuantumLab/function-calling-package-delivery")
> ```
77K synthetic package delivery tool-use examples for LLM agents.
Created by **Hussain Billah** ([ORCID 0009-0009-5686-619X](https://orcid.org/0009-0009-5686-619X)) · Published by **Sonicium Quantum Lab Ltd.** · Series DOI: [10.5281/zenodo.24355126](https://doi.org/10.5281/zenodo.24355126) · Series: **Sonicium Function-Calling** · Generator `2.1.0` · License **CC BY-NC-SA 4.0**
> **Custom datasets & commercial licensing:** Need a larger volume, a new domain, a custom schema or file format, or a commercial / enterprise license? Sonicium Quantum Lab Ltd. builds custom datasets on request.
>
> Email: **research@sonicium.ltd** · **collaboration@sonicium.ltd** · Website: **https://soniciumquantumlab.com**
---
## 1. Overview
This dataset contains **76,978 synthetic function-calling (tool-use) examples** in the **Package Delivery** domain, built for training and evaluating LLM agents.
Each record is a complete tool-use episode: a system prompt, a list of available tools (JSON schemas, including **distractor tools** that must not be called), a user request, a short reasoning note, the **expected tool call with arguments**, a simulated tool result and the assistant's final answer. This teaches a model to **pick the right tool, fill its arguments from the request, and answer from the tool output**.
The dataset is one domain of the **Sonicium Function-Calling** series (50 service domains, about 77K records each), so you can fine-tune on one domain or mix many domains for a general-purpose agent.
## 2. Highlights
| Item | Value |
|---|---|
| Records | 76,978 |
| Domain | Package Delivery |
| Tools in this domain | 4 (`pkg_cancel`, `pkg_create`, `pkg_get_status`, `pkg_history`) |
| Tools offered per record | 2–4 (mean 3) · distractors 1–3 (mean 2) |
| Difficulty | hard 25,725, medium 25,675, easy 25,578 |
| Splits (train / validation / test) | 69,172 / 3,940 / 3,866 |
| Tokens per record (approx.) | 172–267 (mean 220.2) |
| Files | `function_calling_package_delivery.csv` (91.0 MB, 21 columns) · `function_calling_package_delivery.jsonl` (119.2 MB, same records) |
| Language | English |
| Generator version | `2.1.0` |
## 3. Tools in this domain
| Tool | Description | Parameters |
|---|---|---|
| `pkg_cancel` | Cancel a package delivery order. | order_id: string |
| `pkg_create` | Book/create a new package delivery. | see `available_tools` |
| `pkg_get_status` | Check the status of a package delivery order. | order_id: string |
| `pkg_history` | List recent package delivery order history. | limit: integer |
## 4. Example record
| Field | Value |
|---|---|
| `user_query` | Show my last 8 package delivery orders. |
| `assistant_reasoning` | The user's request requires the 'pkg_history' tool — List recent package delivery order history. I will call it with the parameters extracted from the request. |
| `tool_call` | `{"name": "pkg_history", "arguments": {"limit": 8}}` |
| `tool_result` | `{"count": 8, "limit": 8}` |
| `final_answer` | You have 8 recent package delivery order(s) on record. |
| `num_available_tools` / `num_distractor_tools` | 3 / 2 |
## 5. Schema (function_calling_package_delivery.csv)
| Column | Type | Description |
|---|---|---|
| `id` | string | Unique record ID: {category}_{8-digit index}. |
| `category` | string | Generator category; one value per dataset (function_calling_package_delivery). |
| `domain_label` | string | Human-readable service domain (Package Delivery). |
| `task_type` | string | Task label; always function_calling. |
| `difficulty` | string | Difficulty label assigned by the generator (hard / medium / easy). |
| `system_prompt` | string | System prompt telling the assistant it can call the listed tools. |
| `available_tools` | string | JSON list of tool schemas offered in this record (name, description, parameters): the correct tool plus distractors. |
| `user_query` | string | The user request (user turn). |
| `assistant_reasoning` | string | Short rationale naming the tool to call and why. |
| `tool_call` | string | Expected tool call as JSON: {"name": ..., "arguments": {...}}. |
| `tool_result` | string | Simulated JSON response returned by the tool. |
| `final_answer` | string | Assistant final reply to the user, grounded in the tool result. |
| `num_available_tools` | integer | Number of tools offered in available_tools. |
| `num_distractor_tools` | integer | Number of offered tools that should NOT be called. |
| `language` | string | Language code of the record (en). |
| `dataset_version` | string | Generator / schema version (2.1.0). |
| `split` | string | Suggested split: train (~90%), validation (~5%) or test (~5%). |
| `verified` | boolean | True when the generator consistency check passed (true for every row). |
| `token_estimate` | integer | Approximate token length of the full record. |
| `created_at` | datetime | Generation timestamp (ISO 8601). |
| `seed` | string | Deterministic generation seed: {date}:{category}:{index}. |
## 6. Quick start
```python
import json, pandas as pd
df = pd.read_csv("/kaggle/input/function-calling-package-delivery/function_calling_package_delivery.csv")
print(df.shape, df["split"].value_counts().to_dict())
# Build an OpenAI-style tool-calling conversation for SFT
def to_messages(r):
call = json.loads(r.tool_call)
return {
"tools": json.loads(r.available_tools),
"messages": [
{"role": "system", "content": r.system_prompt},
{"role": "user", "content": r.user_query},
{"role": "assistant", "tool_calls": [{"type": "function", "function": {"name": call["name"], "arguments": json.dumps(call["arguments"])}}]},
{"role": "tool", "name": call["name"], "content": r.tool_result},
{"role": "assistant", "content": r.final_answer},
],
}
print(to_messages(df.iloc[0]))
```
The same records are available as JSON Lines (`function_calling_package_delivery.jsonl`) for streaming pipelines.
## 7. Suggested uses
- Supervised fine-tuning of LLMs for **function calling / tool use** in the package delivery domain
- Teaching **tool selection under distractors** and **argument extraction** from natural-language requests
- Training models to write a final answer grounded in a tool result
- Evaluating tool-calling accuracy (exact match on tool name and arguments) with the `test` split
- Building multi-domain agent corpora by combining datasets from the Sonicium Function-Calling series
## 8. Generation and quality notes
- **Synthetic and template-based.** Requests are instantiated from parameterized templates (names, dates, IDs, amounts), so similar phrasings recur. Deduplicate on `user_query` or paraphrase if you need more variety.
- **Simulated tools.** Tool results are generated, not returned by real services; IDs, names and values are fictional.
- **Structured fields.** `available_tools`, `tool_call` and `tool_result` are JSON strings; parse them with `json.loads`.
- **Splits.** The `split` column gives a ready-made train / validation / test partition (about 90 / 5 / 5 %).
- **Reproducible.** Each record stores its generator `seed`; IDs follow `{category}_{8-digit index}`.
## 9. More from Sonicium Quantum Lab Ltd.
Browse the full **Sonicium Function-Calling** series (50 service domains) and the **Sonicium Math Reasoning** series (49 topics) at https://www.kaggle.com/soniciumquantumlab/datasets
## 10. License
Released under **Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)** — https://creativecommons.org/licenses/by-nc-sa/4.0/
Free for research, education and other non-commercial use with attribution. For **commercial licensing**, contact Sonicium Quantum Lab Ltd. (see below).
## 11. Citation
```bibtex
@misc{sonicium_function_calling_package_delivery_2026,
title = {Function-Calling SFT: Package Delivery Tools},
author = {Billah, Hussain and {Sonicium Quantum Lab Ltd.}},
year = {2026},
publisher = {Kaggle},
howpublished = {\url{https://www.kaggle.com/datasets/soniciumquantumlab/function-calling-package-delivery}}
}
```
## 12. Contact & Custom Data Requests
For **custom datasets** (larger scale, new domains, custom schema or format) or a **commercial license**, email us with your use case, the volume you need and your preferred format.
**Sonicium Quantum Lab Ltd.**
- Primary contact: **Nazmul Basher**, Head of Marketing & Communications
- Chairman and Chief Scientist: **Hussain Billah**
- Email: research@sonicium.ltd · collaboration@sonicium.ltd
- Website: https://soniciumquantumlab.com
- Bangladesh office: 5th Floor, Opolok, 225 Senpara Parbata Lane, Mirpur-10, Dhaka-1216, Bangladesh
- US office: 1270 3rd St, Brooklyn, New York 11219, USA
## Files
- `function_calling_package_delivery.csv` — 76,978 records, 21 columns (CSV with header).
- `function_calling_package_delivery.jsonl` — the same records in JSON Lines format (one JSON object per line).
- `README.md` — this documentation.