paper-with-me

Papers

RAG Strategies for Natural Language-Based SQL Query and REST API Call Generation

2026-02-06 · Michael Marketsmüller, Simon Martin, Tim Schlippe arxiv

Enterprise software systems commonly expose business functionality through both relational databases and REST APIs. Accessing these interfaces requires specialized technical knowledge, as users must determine whether a request requires a database query or an API operation and understand the corresponding schemas, endpoints, and parameters. This creates demand for natural language interfaces that translate user requests into SQL queries and REST API calls. While large language models (LLMs) show promise for structured code generation, they typically lack reliable knowledge of enterprise-specific schemas, endpoints, and documentation. Retrieval-augmented generation (RAG) addresses this limitation by grounding generation in external documentation. However, prior work largely studies SQL query generation and REST API call generation separately, despite enterprise documentation environments often containing both database schemas and API specifications. We systematically evaluate standard RAG, Self-RAG, and CoRAG across SQL query generation, REST API call generation, and a combined task requiring routing between both operation types. Using SAP Transactional Banking as a realistic enterprise use case, we constructed an execution-validated dataset and compared retrieval strategies under database-only, API-only, and mixed-documentation settings. Retrieval augmentation proved essential for reliable enterprise structured generation, substantially improving performance over a no-retrieval baseline. CoRAG achieved the best results in the combined SQL query and REST API call setting, with statistically significant improvements in exact-match accuracy over standard RAG, primarily driven by stronger SQL query generation under mixed-documentation retrieval conditions. Overall, findings show that retrieval strategy substantially affects structured generation performance under mixed-documentation settings.

📄 PDF Abstract BibTeX arXiv:2602.07086

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Semantic Parsing for Complex Data Retrieval: Targeting Query Plans vs. SQL for No-Code Access to Relational Databases

2023-12-22 · Ben Eyal, Amir Bachar, Ophir Haroche, Michael Elhadad

Large Language Models (LLMs) have spurred progress in text-to-SQL, the task of generating SQL queries from natural language questions based on a given database schema. Despite the declarative nature of SQL, it continues …

RetrievalSemantic ParsingText to SQLText-To-SQL

Towards a Natural Language Query Processing System

2020-09-25 · Chantal Montgomery, Haruna Isah, Farhana Zulkernine

Tackling the information retrieval gap between non-technical database end-users and those with the knowledge of formal query languages has been an interesting area of data management and analytics research. The use of na…

Information RetrievalManagementRetrieval

ForestQB: An Adaptive Query Builder to Support Wildlife Research

2022-10-06 · Omar Mussa, Omer Rana, Benoît Goossens, Pablo Orozco-terWengel 외

This paper presents ForestQB, a SPARQL query builder, to assist Bioscience and Wildlife Researchers in accessing Linked-Data. As they are unfamiliar with the Semantic Web and the data ontologies, ForestQB aims to empower…

QueryAdapter: Rapid Adaptation of Vision-Language Models in Response to Natural Language Queries

2025-02-26 · Nicolas Harvey Chapman, Feras Dayoub, Will Browne, Christopher Lehnert

A domain shift exists between the large-scale, internet data used to train a Vision-Language Model (VLM) and the raw image streams collected by a robot. Existing adaptation strategies require the definition of a closed-s…

Natural Language Queries

From Natural Language to Executable Option Strategies via Large Language Models

2026-03-17 · Haochen Luo, Zhengzhao Lai, Junjie Xu, Yifan Li 외 arxiv

Large Language Models (LLMs) excel at general code generation, yet translating natural-language trading intents into correct option strategies remains challenging. Real-world option design requires reasoning over massive…

Code Generation