mlsanityData to 14 Oct 2026

Advanced System Integration: Analyzing OpenAPI Chunking for Retrieval-Augmented Generation

arXiv 2411.19804 ↗First posted 29 Nov 2024cs.SE cs.AIcited by 3

On the map: Retrieval-augmented generation → RAG pipeline design and evaluation

Abstract (arXiv)

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"ive 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.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 18 of its 41 references that are in the map. First posted on arXiv 29 Nov 2024.

Builds on

18 of 41 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024The Power of Noise: Redefining Retrieval for RAG Systems26 Jan

Other references · 17

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  5. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  6. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  7. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  8. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
  9. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
  10. 2022PAL: Program-aided Language Modelscited by 652
  11. 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMscited by 591
  12. 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 472
5 more
  1. 2024The Faiss librarycited by 376
  2. 2019Document Expansion by Query Predictioncited by 231
  3. 2023TaskMatrix.AI: Completing Tasks by Connecting Foundation Models with Millions of APIscited by 184
  4. 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsetscited by 129
  5. 2023Leveraging Large Language Models to Improve REST API Testingcited by 20

Built on by

Cited by year

Citing papers per year: 2025: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Mitigating Errors in LLM-Generated Web API Invocations via Retrieval-Augmented Generation and Constrained Decoding
  2. 2026RAG Strategies for Natural Language-Based SQL Query and REST API Call Generation
  3. 2026Not All RAGs Are Created Equal: A Component-Wise Empirical Study for Software Engineering Tasks
  4. 2024Seven Failure Points When Engineering a Retrieval Augmented Generation System
  5. 2024A Methodology for Evaluating RAG Systems: A Case Study On Configuration Dependency Validation
  6. 2026OOPS: Automated generation of REST API specification via LLMs ↗
  7. 2024XRAG: eXamining the Core -- Benchmarking Foundational Components in Advanced Retrieval-Augmented Generation
  8. 2025RAG Without the Lag: Interactive Debugging for Retrieval-Augmented Generation Pipelines