Datasets:
Publish function-calling-loan-application (mirror of Kaggle soniciumquantumlab/function-calling-loan-application)
Browse filesFiles changed (3)
- README.mdAdded+199
- function_calling_loan_application.csv.gzAdded+3
- function_calling_loan_application.jsonl.gzAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199---license: cc-by-nc-sa-4.0language:- enpretty_name: "Function-Calling SFT: Loan Application Tools"task_categories:- text-generationtags:- synthetic- sonicium-quantum-lab- finance- artificial-intelligence- software- nlp- text-generation- function-calling- tool-use- llm-agents- llm-fine-tuningconfigs:- config_name: default data_files: - split: train path: "function_calling_loan_application.jsonl.gz"---
# Function-Calling SFT: Loan Application Tools
> **Hugging Face mirror** of the Kaggle dataset [soniciumquantumlab/function-calling-loan-application](https://www.kaggle.com/datasets/soniciumquantumlab/function-calling-loan-application), 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_loan_application.csv.gz`, `function_calling_loan_application.jsonl.gz`) and load directly with the `datasets` library:>> ```python> from datasets import load_dataset> ds = load_dataset("SoniciumQuantumLab/function-calling-loan-application")> ```
77K synthetic loan application 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,950 synthetic function-calling (tool-use) examples** in the **Loan Application** 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,950 || Domain | Loan Application || Tools in this domain | 4 (`loan_cancel`, `loan_create`, `loan_get_status`, `loan_history`) || Tools offered per record | 2–4 (mean 3) · distractors 1–3 (mean 2) || Difficulty | easy 25,782, hard 25,765, medium 25,403 || Splits (train / validation / test) | 69,242 / 3,853 / 3,855 || Tokens per record (approx.) | 173–269 (mean 221.9) || Files | `function_calling_loan_application.csv` (91.5 MB, 21 columns) · `function_calling_loan_application.jsonl` (119.7 MB, same records) || Language | English || Generator version | `2.1.0` |
## 3. Tools in this domain
| Tool | Description | Parameters ||---|---|---|| `loan_cancel` | Cancel a loan application order. | order_id: string || `loan_create` | Book/create a new loan application. | see `available_tools` || `loan_get_status` | Check the status of a loan application order. | order_id: string || `loan_history` | List recent loan application order history. | limit: integer |
## 4. Example record
| Field | Value ||---|---|| `user_query` | Cancel my loan application order LOAN827775. || `assistant_reasoning` | The user's request requires the 'loan_cancel' tool — Cancel a loan application order. I will call it with the parameters extracted from the request. || `tool_call` | `{"name": "loan_cancel", "arguments": {"order_id": "LOAN827775"}}` || `tool_result` | `{"order_id": "LOAN827775", "status": "cancelled"}` || `final_answer` | Your loan application order LOAN827775 has been cancelled. || `num_available_tools` / `num_distractor_tools` | 2 / 1 |
## 5. Schema (function_calling_loan_application.csv)
| Column | Type | Description ||---|---|---|| `id` | string | Unique record ID: {category}_{8-digit index}. || `category` | string | Generator category; one value per dataset (function_calling_loan_application). || `domain_label` | string | Human-readable service domain (Loan Application). || `task_type` | string | Task label; always function_calling. || `difficulty` | string | Difficulty label assigned by the generator (easy / hard / medium). || `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
```pythonimport json, pandas as pd
df = pd.read_csv("/kaggle/input/function-calling-loan-application/function_calling_loan_application.csv")print(df.shape, df["split"].value_counts().to_dict())
# Build an OpenAI-style tool-calling conversation for SFTdef 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_loan_application.jsonl`) for streaming pipelines.
## 7. Suggested uses
- Supervised fine-tuning of LLMs for **function calling / tool use** in the loan application 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_loan_application_2026, title = {Function-Calling SFT: Loan Application Tools}, author = {Billah, Hussain and {Sonicium Quantum Lab Ltd.}}, year = {2026}, publisher = {Kaggle}, howpublished = {\url{https://www.kaggle.com/datasets/soniciumquantumlab/function-calling-loan-application}}}```
## 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_loan_application.csv` — 76,950 records, 21 columns (CSV with header).- `function_calling_loan_application.jsonl` — the same records in JSON Lines format (one JSON object per line).- `README.md` — this documentation.123version https://git-lfs.github.com/spec/v1oid sha256:4d9e8e9dc8f41044ca1a2635a7b54230555c8ab709a357f6839d9731552b772fsize 3994449123version https://git-lfs.github.com/spec/v1oid sha256:65e35449edf9607b1c7791544acac4a9f014dc19f48d2539e137d09a804b973esize 4561151README.mdAdded+199
function_calling_loan_application.csv.gzAdded+3
function_calling_loan_application.jsonl.gzAdded+3