计算机科学 > 人工智能
[提交于 2025年7月8日]
标题:Representing Prompting Patterns with PDL: Compliance Agent Case Study
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Prompt engineering for LLMs remains complex, with existing frameworks either hiding complexity behind restrictive APIs or providing inflexible canned patterns that resist customization -- making sophisticated agentic programming challenging. We present the Prompt Declaration Language (PDL), a novel approach to prompt representation that tackles this fundamental complexity by bringing prompts to the forefront, enabling manual and automatic prompt tuning while capturing the composition of LLM calls together with rule-based code and external tools. By abstracting away the plumbing for such compositions, PDL aims at improving programmer productivity while providing a declarative representation that is amenable to optimization. This paper demonstrates PDL's utility through a real-world case study of a compliance agent. Tuning the prompting pattern of this agent yielded up to 4x performance improvement compared to using a canned agent and prompt pattern.
提交历史
来自:Louis Mandel[v1] 2025年7月8日 星期二 21:03:22 UTC