mlsanityData to 14 Oct 2026

Retrieval-Augmented Generation for Service Discovery: Chunking Strategies and Benchmarking

arXiv 2505.19310 ↗First posted 25 May 2025cs.SE cs.AIcited by 2

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

Abstract (arXiv)

Integrating multiple (sub-)systems is essential to create advanced Information Systems. Difficulties mainly arise when integrating dynamic environments, e.g., the integration at design time of not yet existing services. This has been traditionally addressed using a registry that provides the API documentation of the endpoints. Large Language Models 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 oken limitations, especially regarding comprehensive API descriptions. Currently, it is unknown how best to preprocess these API descriptions. In the present work, we (i) analyze the usage of Retrieval Augmented Generation for endpoint discovery and the chunking, i.e., preprocessing, of state-of-practice OpenAPIs to reduce the input oken 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 nd retrieves specification details on demand. We evaluate RAG for endpoint discovery using (iii) a proposed novel service discovery benchmark SOCBench-D representing a general setting across numerous domains and the real-world RestBench enchmark, first, for the different chunking possibilities and parameters measuring the endpoint retrieval accuracy. Then, we assess the Discovery Agent using the same test data set. The prototype shows how to successfully employ RAG for endpoint discovery to reduce the token count. Our experiments show that endpoint-based approaches outperform naive chunking methods for preprocessing. Relying on an agent significantly improves precision while being prone to decrease recall, disclosing the need for further reasoning capabilities.

Key facts. Cited by 2 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 26 of its 56 references that are in the map. First posted on arXiv 25 May 2025.

Builds on

26 of 56 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024Advanced System Integration: Analyzing OpenAPI Chunking for Retrieval-Augmented Generation29 Nov
  2. 2024Towards Knowledge Checking in Retrieval-augmented Generation: A Representation Perspective21 Nov
  3. 2024The Power of Noise: Redefining Retrieval for RAG Systems26 Jan

Other references · 23

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

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026RAG Strategies for Natural Language-Based SQL Query and REST API Call Generation
  2. 2026Not All RAGs Are Created Equal: A Component-Wise Empirical Study for Software Engineering Tasks
  3. 2026OOPS: Automated generation of REST API specification via LLMs ↗
  4. 2025Adopting Large Language Models to Automated System Integration
  5. 2026Mitigating Errors in LLM-Generated Web API Invocations via Retrieval-Augmented Generation and Constrained Decoding
  6. 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond
  7. 2026Plan or Retrieve First? A Scale Study of Tool Discovery Architectures
  8. 2024RAG Does Not Work for Enterprises