Advanced System Integration: Analyzing OpenAPI Chunking for Retrieval-Augmented Generation
University of Stuttgart(斯图加特大学);Sapienza Università di Roma(罗马大学)
Robin D. Pesl, Jerin G. Mathew, Massimo Mecella, Marco Aiello
备注:
This preprint has not undergone peer review (when applicable) or any post-submission improvements or corrections. The Version of Record of this contribution is published in Advanced Information Systems Engineering. CAiSE 2025. Lecture Notes in Computer Science, vol 15702. Springer, Cham., and is available online at https://doi.org/10.1007/978-3-031-94571-7_8
发表信息:
Advanced Information Systems Engineering. CAiSE 2025. Lecture Notes in Computer Science, vol 15702. Springer, Cham
集成多个(子)系统对于创建高级信息系统(IS)至关重要。困难主要出现在整个 IS 生命周期中集成动态环境时。传统方法是使用注册表,该注册表提供系统端点的 API 文档。大型语言模型(LLM)已被证明能够基于此类文档自动创建系统集成(例如作为服务组合),但由于输入 token 限制,尤其是在全面的 API 描述方面,它们需要简洁的输入。目前,尚不清楚如何最好地预处理这些 API 描述。在本工作中,我们(i)分析了检索增强生成(RAG)在端点发现中的使用,以及 OpenAPI 的分块(即预处理),以在保留最相关信息的同时减少输入 token 长度。为了进一步减少组合提示的输入 token 长度并改进端点检索,我们提出(ii)一个 Discovery Agent,它只接收最相关端点的摘要,并按需检索详细信息。我们使用 RestBench 基准评估用于端点发现的 RAG:首先针对不同的分块可能性和参数,测量端点检索的召回率、精确率和 F1 分数;随后,我们使用相同的测试集评估 Discovery Agent。通过我们的原型,我们展示了如何成功采用 RAG 进行端点发现以减少 token 数量。尽管召回率、精确率和 F1 均呈现较高数值,但仍需进一步研究以检索所有必要端点。我们的实验表明,在预处理方面,基于 LLM 和针对特定格式的方法优于朴素分块方法。依赖智能体进一步增强了这些结果,因为该智能体将任务拆分为多个细粒度子任务,从而在 token 数量、精确率和 F1 分数方面提升了整体 RAG 性能。
英文摘要:
Integrating multiple (sub-)systems is essential to create advanced Information Systems (ISs). Difficulties mainly arise when integrating dynamic environments across the IS lifecycle. A traditional approach is a registry that provides the API documentation of the systems' endpoints. Large Language Models (LLMs) have shown to be capable of automatically creating system integrations (e.g., as service composition) based on this documentation but require concise input due to input token limitations, especially regarding comprehensive API descriptions. Currently, it is unknown how best to preprocess these API descriptions. Within this work, we (i) analyze the usage of Retrieval Augmented Generation (RAG) for endpoint discovery and the chunking, i.e., preprocessing, of OpenAPIs to reduce the input token length while preserving the most relevant information. To further reduce the input token length for the composition prompt and improve endpoint retrieval, we propose (ii) a Discovery Agent that only receives a summary of the most relevant endpoints and retrieves details on demand. We evaluate RAG for endpoint discovery using the RestBench benchmark, first, for the different chunking possibilities and parameters measuring the endpoint retrieval recall, precision, and F1 score. Then, we assess the Discovery Agent using the same test set. With our prototype, we demonstrate how to successfully employ RAG for endpoint discovery to reduce the token count. While revealing high values for recall, precision, and F1, further research is necessary to retrieve all requisite endpoints. Our experiments show that for preprocessing, LLM-based and format-specific approaches outperform naïve chunking methods. Relying on an agent further enhances these results as the agent splits the tasks into multiple fine granular subtasks, improving the overall RAG performance in the token count, precision, and F1 score.
M3DocDep: Multi-modal, Multi-page, Multi-document Dependency Chunking with Large Vision-Language Models
Human-inspired AI Research, Korea University(韩国大学人智AI研究所);Computer Science and Engineering, Konkuk University(konkuk大学计算机科学与工程系);Department of Computer Science and Engineering, Korea University(韩国大学计算机科学与工程系)
RCSB PDB AI Help Desk: retrieval-augmented generation for protein structure deposition support
RCSB Protein Data Bank, Rutgers, The State University of New Jersey(RCSB蛋白质数据银行,新泽西州立大学拉特格斯分校);RCSB Protein Data Bank, San Diego Supercomputer Center, University of California San Diego(RCSB蛋白质数据银行,圣地亚哥超级计算机中心,加州大学圣地亚哥分校)
NeuSym-RAG: Hybrid Neural Symbolic Retrieval with Multiview Structuring for PDF Question Answering
MoE Key Lab of Artificial Intelligence(摩尔电子关键实验室);X-LANCE Lab, School of Computer Science, Shanghai Jiao Tong University(X-LANCE实验室,计算机科学学院,上海交通大学);Jiangsu Key Lab of Language Computing(江苏语言计算重点实验室);AISpeech Co., Ltd.(AISpeech公司);Suzhou Laboratory(苏州实验室)
Mitigating Errors in LLM-Generated Web API Invocations via Retrieval-Augmented Generation and Constrained Decoding
Technische Universität Darmstadt(德累斯顿技术大学);Hessian Center for Artificial Intelligence (hessian.AI)(黑森人工智能中心);Pariton AI;National Research Center for Applied Cybersecurity ATHENE(应用网络安全国家研究中心ATHENE)
HiKEY: Hierarchical Multimodal Retrieval for Open-Domain Document Question Answering
Human-inspired AI Research, Korea University(韩国大学人机智能研究部);Computer Science and Engineering, Konkuk University(韩国康科大学计算机科学与工程系);Department of Computer Science and Engineering, Korea University(韩国大学计算机科学与工程系)
From PDF to RAG-Ready: Evaluating Document Conversion Frameworks for Domain-Specific Question Answering
Faculty of Engineering, University of Porto(葡萄牙波尔图大学工程学院);Department of Business Administration, University of Maia(马亚大学商业管理系);LIACC—Artificial Intelligence and Computer Science Laboratory, University of Porto(葡萄牙波尔图大学人工智能与计算机科学实验室);Department of Communication Sciences and Information Technologies, University of Maia(马亚大学通讯科学与信息科技系);School of Health, Polytechnic of Porto(波尔图理工学院健康学院);School of Technology and Management, Polytechnic Institute of Maia(马亚理工学院技术与管理学院)