reverse commit for build_prompt and bib
Browse files
README.md
CHANGED
@@ -203,26 +203,10 @@ def convert_to_xlam_tool(tools):
|
|
203 |
|
204 |
# Helper function to build the input prompt for our model
|
205 |
def build_prompt(task_instruction: str, format_instruction: str, tools: list, query: str):
|
206 |
-
prompt = f"[BEGIN OF TASK INSTRUCTION]
|
207 |
-
{
|
208 |
-
[END OF
|
209 |
-
|
210 |
-
"
|
211 |
-
prompt += f"[BEGIN OF AVAILABLE TOOLS]
|
212 |
-
{json.dumps(xlam_format_tools)}
|
213 |
-
[END OF AVAILABLE TOOLS]
|
214 |
-
|
215 |
-
"
|
216 |
-
prompt += f"[BEGIN OF FORMAT INSTRUCTION]
|
217 |
-
{format_instruction}
|
218 |
-
[END OF FORMAT INSTRUCTION]
|
219 |
-
|
220 |
-
"
|
221 |
-
prompt += f"[BEGIN OF QUERY]
|
222 |
-
{query}
|
223 |
-
[END OF QUERY]
|
224 |
-
|
225 |
-
"
|
226 |
return prompt
|
227 |
|
228 |
# Build the input and start the inference
|
@@ -320,13 +304,16 @@ This release is for research purposes only in support of an academic paper. Our
|
|
320 |
If you find this repo helpful, please cite our paper:
|
321 |
|
322 |
```bibtex
|
323 |
-
@
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
|
|
|
|
|
|
331 |
}
|
332 |
```
|
|
|
203 |
|
204 |
# Helper function to build the input prompt for our model
|
205 |
def build_prompt(task_instruction: str, format_instruction: str, tools: list, query: str):
|
206 |
+
prompt = f"[BEGIN OF TASK INSTRUCTION]\n{task_instruction}\n[END OF TASK INSTRUCTION]\n\n"
|
207 |
+
prompt += f"[BEGIN OF AVAILABLE TOOLS]\n{json.dumps(xlam_format_tools)}\n[END OF AVAILABLE TOOLS]\n\n"
|
208 |
+
prompt += f"[BEGIN OF FORMAT INSTRUCTION]\n{format_instruction}\n[END OF FORMAT INSTRUCTION]\n\n"
|
209 |
+
prompt += f"[BEGIN OF QUERY]\n{query}\n[END OF QUERY]\n\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
return prompt
|
211 |
|
212 |
# Build the input and start the inference
|
|
|
304 |
If you find this repo helpful, please cite our paper:
|
305 |
|
306 |
```bibtex
|
307 |
+
@article{liu2024apigen,
|
308 |
+
title={APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasets},
|
309 |
+
author={Liu, Zuxin and Hoang, Thai and Zhang, Jianguo and Zhu, Ming and Lan, Tian and Kokane, Shirley and Tan, Juntao and Yao, Weiran and Liu, Zhiwei and Feng, Yihao and others},
|
310 |
+
journal={arXiv preprint arXiv:2406.18518},
|
311 |
+
year={2024}
|
312 |
+
|
313 |
+
@article{zhang2025actionstudio,
|
314 |
+
title={ActionStudio: A Lightweight Framework for Data and Training of Action Models},
|
315 |
+
author={Zhang, Jianguo and Hoang, Thai and Zhu, Ming and Liu, Zuxin and Wang, Shiyu and Awalgaonkar, Tulika and Prabhakar, Akshara and Chen, Haolin and Yao, Weiran and Liu, Zhiwei and others},
|
316 |
+
journal={arXiv preprint arXiv:2503.22673},
|
317 |
+
year={2025}
|
318 |
}
|
319 |
```
|