arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.11613cs.CLcs.AIcs.ETcs.HCcs.PL
收藏

对话例程:面向任务型对话系统的提示工程框架

Conversation Routines: A Prompt Engineering Framework for Task-Oriented Dialog Systems

Giorgio Robino

AI总结:

本文提出对话例程(CR)提示工程框架,用自然语言规范构建任务型对话系统,通过两个概念验证案例验证其有效性,并指出计算开销等挑战及未来方向。

摘要:

本研究介绍了对话例程(Conversation Routines, CR),这是一个用于使用大型语言模型(LLMs)开发任务型对话系统的结构化提示工程框架。尽管LLMs展现出卓越的自然语言理解能力,但工程化地使它们可靠地执行复杂的业务流程仍然具有挑战性。所提出的CR框架通过自然语言规范实现了对话代理系统(Conversation Agentic Systems, CAS)的开发,将面向任务的逻辑嵌入到LLM提示中。该方法提供了一种系统性的方法论,用于设计和实现复杂的对话工作流,同时保持行为一致性。我们通过两个概念验证实现来展示该框架的有效性:一个火车票预订系统和一个交互式故障排除助手。这些案例研究验证了CR在编码复杂行为模式和决策逻辑的同时保持自然对话灵活性的能力。结果表明,CR使领域专家能够用自然语言设计对话工作流,同时利用软件工程师开发的自定义函数(工具),从而形成一种高效的责任分工,开发者专注于核心API实现,领域专家负责对话设计。尽管该框架在可访问性和适应性方面显示出潜力,但我们识别出关键挑战,包括计算开销、非确定性行为和特定领域逻辑优化。未来的研究方向包括基于由目标导向评分标准驱动的提示工程框架的CR评估方法,提高复杂多代理交互的可扩展性,以及增强系统鲁棒性以解决不同业务应用中已识别的局限性。

英文摘要:

This study introduces Conversation Routines (CR), a structured prompt engineering framework for developing task-oriented dialog systems using Large Language Models (LLMs). While LLMs demonstrate remarkable natural language understanding capabilities, engineering them to reliably execute complex business workflows remains challenging. The proposed CR framework enables the development of Conversation Agentic Systems (CAS) through natural language specifications, embedding task-oriented logic within LLM prompts. This approach provides a systematic methodology for designing and implementing complex conversational workflows while maintaining behavioral consistency. We demonstrate the framework's effectiveness through two proof-of-concept implementations: a Train Ticket Booking System and an Interactive Troubleshooting Copilot. These case studies validate CR's capability to encode sophisticated behavioral patterns and decision logic while preserving natural conversational flexibility. Results show that CR enables domain experts to design conversational workflows in natural language while leveraging custom functions (tools) developed by software engineers, creating an efficient division of responsibilities where developers focus on core API implementation and domain experts handle conversation design. While the framework shows promise in accessibility and adaptability, we identify key challenges including computational overhead, non-deterministic behavior, and domain-specific logic optimization. Future research directions include CR evaluation methods based on prompt engineering frameworks driven by goal-oriented grading criteria, improving scalability for complex multi-agent interactions, and enhancing system robustness to address the identified limitations across diverse business applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑