Retrieval-Augmented Generation for Service Discovery: Chunking Strategies and Benchmarking
Robin D. Pesl, Jerin George Mathew, Massimo Mecella, Marco Aiello
University of Stuttgart · Sapienza University of Rome
Key points
From the paper's conclusion- 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 benchmark, first, for the different chunking possibilities and parameters measuring the endpoint retrieval accuracy.
Abstract
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 (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. In the present work, we (i) analyze the usage of Retrieval Augmented Generation (RAG) for endpoint discovery and the chunking, i.e., preprocessing, of state-of-practice 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 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 benchmark, 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 naüve chunking methods for preprocessing. Relying on an agent significantly improves precision while being prone to decrease recall, disclosing the need for further reasoning capabilities.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- SCCGBench: Executability-Oriented Evaluation for Real-World Web Service-Call Code GenerationarXiv · 2026
- SSR: Structural Signal Retriever for Scalable Agent Discovery in LLM-Orchestrated Multi-Agent SystemsarXiv · 2026
- Modular RAG: Transforming RAG Systems into LEGO-like Reconfigurable FrameworksACM Transactions on Information Systems · 2026
- Plan or Retrieve First? A Scale Study of Tool Discovery ArchitecturesarXiv · 2026
- AutoRAGBench: A Benchmark for LLM Agents Automating RAG System DevelopmentarXiv · 2026
- ORDER: Task-Conditioned Routing for Retrieval-Augmented GenerationarXiv · 2026