lik98 commited on
Commit
778be57
·
verified ·
1 Parent(s): 1e9e91f

Add complete TCDD dataset card and viewer config

Browse files
Files changed (1) hide show
  1. README.md +199 -0
README.md CHANGED
@@ -1,3 +1,202 @@
1
  ---
2
  license: cc-by-nc-sa-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-sa-4.0
3
+ language:
4
+ - en
5
+ pretty_name: Tool-Calling Dataset for Drug Discovery (TCDD)
6
+ task_categories:
7
+ - text-generation
8
+ tags:
9
+ - tool-calling
10
+ - function-calling
11
+ - drug-discovery
12
+ - chemistry
13
+ - agents
14
+ - sharegpt
15
+ size_categories:
16
+ - 1K<n<10K
17
+ configs:
18
+ - config_name: default
19
+ default: true
20
+ data_files:
21
+ - split: train
22
+ path: tool_calling_memory_pool.json
23
  ---
24
+
25
+ # TCDD: Tool-Calling Dataset for Drug Discovery
26
+
27
+ TCDD is the domain-specific tool-calling dataset introduced with **DrugPilot**, an LLM-based parameterized reasoning agent for drug discovery. It contains ShareGPT-style traces in which an assistant interprets a drug-discovery request, selects a tool, supplies its arguments, observes the tool output, and produces a final response. Some traces also demonstrate multi-turn use of the Parameterized Memory Pool (PMP).
28
+
29
+ The dataset is intended to support supervised fine-tuning and evaluation of three capabilities:
30
+
31
+ 1. selecting an appropriate drug-discovery tool from a natural-language request;
32
+ 2. extracting domain-specific parameters such as SMILES, protein sequences, cell lines, and property names; and
33
+ 3. reading from and writing results to DrugPilot's Parameterized Memory Pool.
34
+
35
+ - **Paper:** [DrugPilot: LLM-based Parameterized Reasoning Agent for Drug Discovery](https://arxiv.org/abs/2505.13940)
36
+ - **Code:** [wzn99/DrugPilot](https://github.com/wzn99/DrugPilot)
37
+ - **Data file:** [`tool_calling_memory_pool.json`](https://huggingface.co/datasets/lik98/TCDD/blob/main/tool_calling_memory_pool.json)
38
+
39
+ ## Dataset Viewer and repository statistics
40
+
41
+ The YAML configuration above explicitly exposes the complete JSON file in the Hugging Face Dataset Viewer as the `default` configuration and `train` split. The Viewer is paginated; all records remain available through the page controls or the `datasets` library.
42
+
43
+ Statistics below were computed from the file currently published in this repository:
44
+
45
+ | Item | Value |
46
+ |---|---:|
47
+ | Records | 3,098 |
48
+ | Conversation messages | 17,402 |
49
+ | File size | 11,643,767 bytes |
50
+ | Columns | `conversations`, `system`, `tools` |
51
+ | Conversation length | 4–8 messages |
52
+ | Four-message records | 1,843 |
53
+ | Six-message records | 5 |
54
+ | Eight-message records | 1,250 |
55
+
56
+ The DrugPilot paper describes the benchmark as **2,800 annotated samples**, including 2,500 training samples and 300 testing samples. The single artifact currently hosted here contains 3,098 records and does not encode the paper's original train/test membership. For that reason, Hugging Face exposes the full file as one `train` split; users reproducing the paper should obtain or reconstruct the intended split before comparing benchmark results.
57
+
58
+ ## Dataset structure
59
+
60
+ Each top-level item has three fields:
61
+
62
+ | Field | Type | Description |
63
+ |---|---|---|
64
+ | `conversations` | list of objects | Ordered dialogue messages. Every message has string fields `from` and `value`. |
65
+ | `system` | string | System instruction that defines the expected tool-calling behavior and output format. |
66
+ | `tools` | string | A JSON-serialized list of available tool definitions, including names, descriptions, parameters, and required fields. |
67
+
68
+ The `from` field uses these role labels:
69
+
70
+ - `human`: the user's natural-language request;
71
+ - `function_call`: the selected function and arguments, represented as a JSON-like string;
72
+ - `observation`: the tool result and a snapshot of the PMP keys;
73
+ - `gpt`: the assistant's natural-language answer.
74
+
75
+ An abbreviated record looks like this:
76
+
77
+ ```json
78
+ {
79
+ "conversations": [
80
+ {
81
+ "from": "human",
82
+ "value": "Determine the thermodynamic free energy ... MemoryPool(arguments=dict_keys([]))"
83
+ },
84
+ {
85
+ "from": "function_call",
86
+ "value": "{\"name\": \"drug_property_prediction\", \"arguments\": {...}}"
87
+ },
88
+ {
89
+ "from": "observation",
90
+ "value": "{\"task\": ..., \"result\": ...} MemoryPool(arguments=dict_keys([...]))"
91
+ },
92
+ {
93
+ "from": "gpt",
94
+ "value": "The free energy of dissolution ..."
95
+ }
96
+ ],
97
+ "system": "You are a function calling AI model ...",
98
+ "tools": "[{\"name\": \"drug_property_prediction\", ...}]"
99
+ }
100
+ ```
101
+
102
+ ### Tool labels in the published artifact
103
+
104
+ The paper organizes TCDD around eight representative drug-discovery task families. The current JSON contains the following nine distinct callable labels. Counts refer to function-call messages, not top-level records; multi-turn records can contain more than one call.
105
+
106
+ | Function label | Calls |
107
+ |---|---:|
108
+ | `drug_property_prediction` | 841 |
109
+ | `drug_target_affinity_regression_predict` | 689 |
110
+ | `drug_cell_response_regression_predict` | 621 |
111
+ | `drug_target_classification_predict` | 503 |
112
+ | `drug_cell_response_regression_optimization` | 490 |
113
+ | `drug_cell_response_regression_generation` | 449 |
114
+ | `Retrosynthetic_reaction_pathway_prediction` | 430 |
115
+ | `drug_drug_response_predict` | 290 |
116
+ | `drug_target_affinity_classification_predict` | 40 |
117
+
118
+ ## Data creation
119
+
120
+ According to the paper, TCDD simulates realistic user–assistant interactions across single-turn dialogue, multi-turn workflows, parameter-error correction, and memory-pool updates. The authors varied user-query wording and molecular inputs, and included complete instructions as well as cases with missing or misspelled parameters. The paper describes approximately 50% single-turn samples, 30% multi-turn samples, and 20% parameter-error scenarios in the original benchmark design.
121
+
122
+ The task content draws on drug-discovery resources listed in the paper, including BACE, BBBP, ESOL, FreeSolv, LIPO, GDSCv2, DAVIS, KIBA, BindingDB, DrugBank, TWOSIDES, ZINC, QM9, and USPTO. See the paper and the source datasets for collection details and original terms.
123
+
124
+ ## Loading the data
125
+
126
+ Install the Hugging Face `datasets` library and load the repository directly:
127
+
128
+ ```python
129
+ from datasets import load_dataset
130
+
131
+ dataset = load_dataset("lik98/TCDD")
132
+ train = dataset["train"]
133
+
134
+ print(train)
135
+ print(train[0]["conversations"])
136
+ ```
137
+
138
+ To parse the serialized tool schema for a record:
139
+
140
+ ```python
141
+ import json
142
+
143
+ tool_schema = json.loads(train[0]["tools"])
144
+ print(tool_schema[0]["name"])
145
+ ```
146
+
147
+ The original file can also be downloaded without converting it:
148
+
149
+ ```python
150
+ from huggingface_hub import hf_hub_download
151
+
152
+ path = hf_hub_download(
153
+ repo_id="lik98/TCDD",
154
+ filename="tool_calling_memory_pool.json",
155
+ repo_type="dataset",
156
+ )
157
+ ```
158
+
159
+ ## Intended uses
160
+
161
+ TCDD may be useful for:
162
+
163
+ - supervised fine-tuning of tool- or function-calling language models;
164
+ - evaluating tool selection, argument extraction, and multi-turn tool use;
165
+ - studying structured memory for scientific agents; and
166
+ - prototyping drug-discovery assistants that connect language models to specialist tools.
167
+
168
+ When using TCDD as a benchmark, define and publish the exact split, preprocessing rules, prompt template, and parsing policy used in the experiment.
169
+
170
+ ## Limitations and responsible use
171
+
172
+ - The data is intended for research and engineering, not clinical diagnosis, treatment selection, laboratory safety decisions, or unsupervised real-world drug development.
173
+ - Tool observations and assistant responses should not be assumed to be experimentally validated. Molecular strings, protein sequences, numerical outputs, and generated text should be checked with appropriate domain tools and expert review.
174
+ - `tools` is a serialized JSON string rather than a nested column. Most `function_call` values are also JSON strings, but some contain unescaped backslashes in SMILES notation and are not valid strict JSON. Use a validation or normalization step before calling `json.loads` on every function-call value.
175
+ - The published artifact has no explicit train/validation/test field and its row count differs from the benchmark size reported in the paper. Avoid accidental train–test leakage when creating a new split.
176
+ - Source databases may have their own licenses, access conditions, biases, and coverage limitations. Users should review those terms for their intended use.
177
+ - Drug-discovery datasets can overrepresent well-studied molecules, targets, cell lines, and assay conditions. Performance on these traces does not establish generalization to novel chemistry or experimental settings.
178
+
179
+ ## License
180
+
181
+ This repository is released under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license](https://creativecommons.org/licenses/by-nc-sa/4.0/) (`CC BY-NC-SA 4.0`). Users are responsible for confirming that their use also complies with the terms of the underlying source datasets.
182
+
183
+ ## Citation
184
+
185
+ If you use TCDD or DrugPilot, please cite:
186
+
187
+ ```bibtex
188
+ @article{li2025drugpilot,
189
+ title = {DrugPilot: LLM-based Parameterized Reasoning Agent for Drug Discovery},
190
+ author = {Li, Kun and Wu, Zhennan and Wang, Shoupeng and Wu, Jia and Pan, Shirui and Hu, Wenbin},
191
+ journal = {arXiv preprint arXiv:2505.13940},
192
+ year = {2025},
193
+ doi = {10.48550/arXiv.2505.13940},
194
+ url = {https://arxiv.org/abs/2505.13940}
195
+ }
196
+ ```
197
+
198
+ ## Related resources
199
+
200
+ - DrugPilot repository: <https://github.com/wzn99/DrugPilot>
201
+ - Paper: <https://arxiv.org/abs/2505.13940>
202
+ - Dataset repository: <https://huggingface.co/datasets/lik98/TCDD>