Generating synthetic data to train LLM with tool usage capabilities
Патент · CN A
Полный текст
Implementations relate to generating multiple training instances for training a generative model to perform tasks using external tools/services accessible via corresponding APIs. The plurality of training examples each include synthetic natural language user instructions and an execution step for executing a task (e.g., a single API task or a multi-API task) specified in the synthetic natural language user instructions. The synthetic natural language user instructions selected for synthesizing training data may be generated based on processing text prompts using the first LLM, wherein the text prompts may each include an API list and associated API documents, one or more seed samples, and a request for the synthetic natural language user instructions. One or more execution steps of the corresponding synthetic natural language user instruction may be generated based on parsing the corresponding synthetic natural language user instruction using the first LLM or the second LLM.