Surfdan commited on
Commit
791e54f
·
verified ·
1 Parent(s): 459df89

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +64 -0
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: mit
4
+ task_categories:
5
+ - conversational
6
+ - question-answering
7
+ tags:
8
+ - function-calling
9
+ - tool-use
10
+ - synthetic
11
+ - glm5
12
+ - agentic
13
+ size_categories:
14
+ - 1K<n<10K
15
+ ---
16
+
17
+ # GLM-5.3-Flash Function Calling (synthetic)
18
+
19
+ A synthetic function-calling dataset generated with [zai-org/GLM-5.3-Flash](https://huggingface.co/zai-org/GLM-5.3-Flash) via Hugging Face Inference Providers. Every example is schema-validated and deduplicated before it is written.
20
+
21
+ ## Splits
22
+
23
+ | File | Format | Rows |
24
+ |---|---|---|
25
+ | `data/messages.jsonl` | OpenAI messages (multi-turn) | — |
26
+ | `data/xlam.jsonl` | xlam single-turn | — |
27
+
28
+ _The table is filled in when the generation run completes._
29
+
30
+ ## `messages` format
31
+
32
+ ```json
33
+ {
34
+ "id": "glm53fc-000123",
35
+ "messages": [
36
+ {"role": "system", "content": "..."},
37
+ {"role": "user", "content": "..."},
38
+ {"role": "assistant", "content": null, "tool_calls": [{"id": "call_1", "type": "function", "function": {"name": "...", "arguments": "{...}"}}]},
39
+ {"role": "tool", "tool_call_id": "call_1", "name": "...", "content": "{...}"},
40
+ {"role": "assistant", "content": "final natural-language answer"}
41
+ ],
42
+ "tools": [/* OpenAI function definitions used in the example */],
43
+ "domain": "travel",
44
+ "type": "tool"
45
+ }
46
+ ```
47
+
48
+ Multi-call examples contain several entries in one assistant `tool_calls` list plus one `tool` reply per call.
49
+
50
+ ## `xlam` format
51
+
52
+ ```json
53
+ {"id": "...", "query": "user request", "tools": [...], "answers": [{"name": "...", "arguments": {...}}]}
54
+ ```
55
+
56
+ No-tool ("negative") examples have empty `answers` — they teach a model *not* to call a function.
57
+
58
+ ## Generation pipeline
59
+
60
+ 1. **Scenario** — GLM-5.3-Flash invents a domain scenario with 3–6 JSON-schema functions and a natural user query (16 domains, ~85% tool-using / 15% no-tool negatives).
61
+ 2. **Call** — the same model answers with tools attached (`tool_choice="required"` / `"auto"`), producing real OpenAI-style `tool_calls`.
62
+ 3. **Simulate** — the model fabricates plausible JSON tool results, then writes the final assistant answer with results in context.
63
+
64
+ Arguments are validated against each function's JSON Schema (required keys present, types match, no extra keys); failures are dropped. Generation script: [`generate_function_calling.py`](./generate_function_calling.py). Resume-safe (append + dedup), so later runs extend the dataset in place.