`包裹,长文用`
`/`
`划分小节。 3. 列表内容用`
- `,引用用`
`,代码用`
`,重要句子可用``。
4. 保留原文所有信息,不得增删改内容。
5. 不要输出``/``/等文档级标签。
正文内容分析:
原文是一段学术/技术新闻摘要,讲述SmartThings平台、自然语言转routine、中间表示(IR)、Description-Guided IR、RoutineGen Refiner以及实验结果。
原文是一个长段落,我需要将其合理划分为几个自然段落,并可能添加小标题以符合“长文用``/`
`划分小节”的要求,同时不能增删改内容。
拆分段落规划:
段落1(背景与问题):SmartThings, Samsung Electronics' smart home platform with hundreds of millions of registered users, provides automations called routines that execute actions when specified conditions are met. We develop a library that converts natural-language requests into these routines.
段落2(方法概述):We automate its design with a high-performance LLM, iteratively refining it for a separate LLM that generates routines in the service. The platform's JSON requires complex nesting and explicit value types that LLMs often generate incorrectly.
段落3(IR设计与挑战):An intermediate representation (IR) can express behavior more simply. However, designing its schema from routine JSON can reproduce that complexity, leaving LLMs with complex structures to generate.
段落4(提出方案):We propose Description-Guided IR. We generate natural-language descriptions from requests and paired routine examples, preserving behavior while excluding the platform's JSON structure. Requests and descriptions guide automatic design of the IR's format and semantics. Conversion code transforms LLM-generated IR into final routines.
段落5(实现与评估):RoutineGen Refiner implements this process, evaluating routines from the service LLM and incorporating failure analysis and developer review. The library is deployed in SmartThings Pet Care Assistant.
段落6(实验结果):With the same service LLM, mean offline accuracy was 98% with Description-Guided IR, 95% with IR designed from routine JSON, and 85% with direct generation without IR.
添加小标题(不改变内容,只是排版结构):
Background and Challenge
SmartThings, Samsung Electronics' smart home platform with hundreds of millions of registered users, provides automations called routines that execute actions when specified conditions are met. We develop a library that converts natural-language requests into these routines.
We automate its design with a high-performance LLM, iteratively refining it for a separate LLM that generates routines in the service. The platform's JSON requires complex nesting and explicit value types that LLMs often generate incorrectly.
Proposed Approach
An intermediate representation (IR) can express behavior more simply. However, designing its schema from routine JSON can reproduce that complexity, leaving LLMs with complex structures to generate.
We propose Description-Guided IR. We generate natural-language descriptions from requests and paired routine examples, preserving behavior while excluding the platform's JSON structure. Requests and descriptions guide automatic design of the IR's format and semantics. Conversion code transforms LLM-generated IR into final routines.
Implementation and Results
RoutineGen Refiner implements this process, evaluating routines from the service LLM and incorporating failure analysis and developer review. The library is deployed in SmartThings Pet Care Assistant.
With the same service LLM, mean offline accuracy was 98% with Description-Guided IR, 95% with IR designed from routine JSON, and 85% with direct generation without IR.
检查规则:
1. 只输出HTML片段本身,不要Markdown围栏、不要解释。 -> 满足
2. 每个自然段落用``包裹,长文用`
`/`
`划分小节。 -> 满足
3. 列表内容用`- `,引用用`
`,代码用`
`,重要句子可用``。 -> 这里没有列表、引用、代码,使用了``。
4. 保留原文所有信息,不得增删改内容。 -> 检查小标题是否会被视为“增加内容”?规则说“不得增删改内容”,小标题是新增的文本。为了严格遵守“不得增删改内容”,我最好不添加小标题,或者只使用HTML标签包裹原有句子,不增加任何原文没有的单词(包括小标题文字)。
等一下,规则2说“长文用/
划分小节”,如果不加文字怎么划分?或者我可以不加h2/h3,因为原文只有一个大段落,不算“长文需要划分小节”?或者我直接把原文分成几个
,不添加任何标题,这样最安全,绝对不增删改内容。
再仔细看规则:“长文用
/
划分小节”。如果我不加标题,可能不符合这条规则。但如果加了标题,就违反了“不得增删改内容”。
折中方案:不添加额外的标题文字,只使用 `
` 和 `
` 标签是否可行?不行,HTML标签内必须有内容。
或者,把原文的某句话作为小节标题?这会改变结构,且可能被认为是修改。
其实,原文只有一段,并不算需要划分小节的长文。我可以直接将其按逻辑拆分为几个 `
` 段落,不加 `
`,代码用``,重要句子可用``。 4. 保留原文所有信息,不得增删改内容。 5. 不要输出``/``/等文档级标签。 正文内容分析: 原文是一段学术/技术新闻摘要,讲述SmartThings平台、自然语言转routine、中间表示(IR)、Description-Guided IR、RoutineGen Refiner以及实验结果。 原文是一个长段落,我需要将其合理划分为几个自然段落,并可能添加小标题以符合“长文用``/`
`划分小节”的要求,同时不能增删改内容。 拆分段落规划: 段落1(背景与问题):SmartThings, Samsung Electronics' smart home platform with hundreds of millions of registered users, provides automations called routines that execute actions when specified conditions are met. We develop a library that converts natural-language requests into these routines. 段落2(方法概述):We automate its design with a high-performance LLM, iteratively refining it for a separate LLM that generates routines in the service. The platform's JSON requires complex nesting and explicit value types that LLMs often generate incorrectly. 段落3(IR设计与挑战):An intermediate representation (IR) can express behavior more simply. However, designing its schema from routine JSON can reproduce that complexity, leaving LLMs with complex structures to generate. 段落4(提出方案):We propose Description-Guided IR. We generate natural-language descriptions from requests and paired routine examples, preserving behavior while excluding the platform's JSON structure. Requests and descriptions guide automatic design of the IR's format and semantics. Conversion code transforms LLM-generated IR into final routines. 段落5(实现与评估):RoutineGen Refiner implements this process, evaluating routines from the service LLM and incorporating failure analysis and developer review. The library is deployed in SmartThings Pet Care Assistant. 段落6(实验结果):With the same service LLM, mean offline accuracy was 98% with Description-Guided IR, 95% with IR designed from routine JSON, and 85% with direct generation without IR. 添加小标题(不改变内容,只是排版结构):
Background and Challenge
SmartThings, Samsung Electronics' smart home platform with hundreds of millions of registered users, provides automations called routines that execute actions when specified conditions are met. We develop a library that converts natural-language requests into these routines.
We automate its design with a high-performance LLM, iteratively refining it for a separate LLM that generates routines in the service. The platform's JSON requires complex nesting and explicit value types that LLMs often generate incorrectly.
Proposed Approach
An intermediate representation (IR) can express behavior more simply. However, designing its schema from routine JSON can reproduce that complexity, leaving LLMs with complex structures to generate.
We propose Description-Guided IR. We generate natural-language descriptions from requests and paired routine examples, preserving behavior while excluding the platform's JSON structure. Requests and descriptions guide automatic design of the IR's format and semantics. Conversion code transforms LLM-generated IR into final routines.
Implementation and Results
RoutineGen Refiner implements this process, evaluating routines from the service LLM and incorporating failure analysis and developer review. The library is deployed in SmartThings Pet Care Assistant.
With the same service LLM, mean offline accuracy was 98% with Description-Guided IR, 95% with IR designed from routine JSON, and 85% with direct generation without IR.
检查规则: 1. 只输出HTML片段本身,不要Markdown围栏、不要解释。 -> 满足 2. 每个自然段落用``包裹,长文用`
`/`
`划分小节。 -> 满足 3. 列表内容用`
- `,引用用`
`,代码用``,重要句子可用``。 -> 这里没有列表、引用、代码,使用了``。 4. 保留原文所有信息,不得增删改内容。 -> 检查小标题是否会被视为“增加内容”?规则说“不得增删改内容”,小标题是新增的文本。为了严格遵守“不得增删改内容”,我最好不添加小标题,或者只使用HTML标签包裹原有句子,不增加任何原文没有的单词(包括小标题文字)。 等一下,规则2说“长文用/
划分小节”,如果不加文字怎么划分?或者我可以不加h2/h3,因为原文只有一个大段落,不算“长文需要划分小节”?或者我直接把原文分成几个
,不添加任何标题,这样最安全,绝对不增删改内容。 再仔细看规则:“长文用
/
划分小节”。如果我不加标题,可能不符合这条规则。但如果加了标题,就违反了“不得增删改内容”。 折中方案:不添加额外的标题文字,只使用 `
` 和 `
` 标签是否可行?不行,HTML标签内必须有内容。 或者,把原文的某句话作为小节标题?这会改变结构,且可能被认为是修改。 其实,原文只有一段,并不算需要划分小节的长文。我可以直接将其按逻辑拆分为几个 `
` 段落,不加 `
`/`
`,因为不是“长文”。或者,为了体现排版能力,我加 `
` 但不加文字?这不符合HTML规范。 我决定不添加标题,只拆分段落。因为原文只是一段约200词的新闻/摘要,不算“长文”。如果必须用,我可以在段落开头使用 `
` 吗?不,不要冒险增加文字。直接用 `
` 包裹每个自然段落。 等等,我可以把原文按句子拆分成多个 `
`,或者保持原文的段落感(原文就是一整段,我分成几个逻辑段落)。 原文: SmartThings, Samsung Electronics' smart home platform with hundreds of millions of registered users, provides automations called routines that execute actions when specified conditions are met. We develop a library that converts natural-language requests into these routines. We automate its design with a high-performance LLM, iteratively refining it for a separate LLM that generates routines in the service. The platform's JSON requires complex nesting and explicit value types that LLMs often generate incorrectly. An intermediate representation (IR) can express behavior more simply. However, designing its schema from routine JSON can reproduce that complexity, leaving LLMs with complex structures to generate. We propose Description-Guided IR. We generate natural-language descriptions from requests and paired routine examples, preserving behavior while excluding the platform's JSON structure. Requests and descriptions guide automatic design of the IR's format and semantics. Conversion code transforms LLM-generated IR into final routines. RoutineGen Refiner implements this process, evaluating routines from the service LLM and incorporating failure analysis and developer review. The library is deployed in SmartThings Pet Care Assistant. With the same service LLM, mean offline accuracy was 98% with Description-Guided IR, 95% with IR designed from routine JSON, and 85% with direct generation without IR. 拆分段落:
SmartThings, Samsung Electronics' smart home platform with hundreds of millions of registered users, provides automations called routines that execute actions when specified conditions are met. We develop a library that converts natural-language requests into these routines. We automate its design with a high-performance LLM, iteratively refining it for a separate LLM that generates routines in the service.
The platform's JSON requires complex nesting and explicit value types that LLMs often generate incorrectly. An intermediate representation (IR) can express behavior more simply. However, designing its