arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.37242cs.AIcs.SE
收藏

将大语言模型智能体锚定到业务流程:用于可靠多步骤服务调用的流程感知知识图谱

Grounding LLM Agents in Business Processes: Process-Aware Knowledge Graphs for Reliable Multi-Step Service Invocation

Science and Technology Facilities Council(科学技术设施理事会);University of Oxford(牛津大学)

Saiful Khan, Afrah Farea

AI总结:

该研究提出流程感知知识图谱方法,结合OData元数据与BPMN流程,通过混合检索器实现可靠多步骤服务调用,在企业服务与多步骤查询任务中显著提升了LLM智能体的API调用可靠性。

摘要:

调用企业API的大语言模型(LLM)智能体必须选择正确的端点、遵循流程顺序、使用有效载荷键,并从预定义列表中选择编码值。然而,当前基于检索增强的服务发现将端点视为独立个体,因此忽略了流程和模式约束。我们通过在类型化属性图中集成开放数据协议(OData)元数据和业务流程模型与符号(BPMN)参考流程来解决这一局限。一种混合检索器使用密集嵌入识别候选端点,并沿流程边检索后续端点。我们在带有流程链真值的42个企业服务上评估该方法。对于查询与下游实体间词汇重叠度低的情况,该方法将Recall@3提升了5.7个百分点(n=74),且在不同嵌入模型和截断值下均保持一致的提升效果。在其他查询上,其表现与密集检索相当;在无流程层的OpenAPI服务上则无提升,表明该提升源于流程结构。我们还在81个多步骤查询上评估了LLM智能体,其完成38.7%的任务,而基于块的基线仅完成10.3%。在启发式探测中,提供有效编码列表可消除虚构编码,但仍有46%的写入运行存在无效键;完整类型化上下文将无效调用降至3%(101次运行中的3次),且无虚构编码。这些结果表明,在检索过程中暴露流程和模式约束可提升智能体驱动API调用的可靠性。

英文摘要:

Large language model (LLM) agents that call enterprise APIs must select the correct endpoints, follow process order, use valid payload keys, and choose coded values from predefined lists. However, current retrieval-augmented service discovery treats endpoints independently and therefore misses process and schema constraints. We address this limitation by integrating Open Data Protocol (OData) metadata and Business Process Model and Notation (BPMN) reference processes in a typed property graph. A hybrid retriever identifies candidate endpoints using dense embeddings and follows process edges to retrieve subsequent endpoints. We evaluate the method on 42 enterprise services with process-chain ground truth. For queries with low lexical overlap between the query and downstream entities, it improves Recall@3 by 5.7 points (n=74), with consistent gains across embedding models and cut-offs. It matches dense retrieval on other queries and provides no improvement on OpenAPI services without a process layer, indicating that the gains arise from process structure. We also evaluate an LLM agent on 81 multi-step queries. It completes 38.7% of tasks, compared with 10.3% for a chunk-based baseline. In an elicitation probe, providing valid code lists eliminates invented codes but leaves invalid keys in 46% of write runs. Full typed context reduces invalid calls to 3% (3 of 101 runs), with no invented codes. These results show that exposing process and schema constraints during retrieval improves the reliability of agent-driven API calls.

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

↑