paper-with-me

홈 › Papers

Schema-First Retrieval: Embedding Catalogs for Natural Language Analytics

2026-06-23 · Adarsh Agrawal, Shashank Indukuri arxiv

Enterprise text-to-SQL systems often fail before SQL is generated: the model receives the wrong schema context. Modern warehouses contain thousands of tables, abbreviated columns, informal metrics, hidden join conventions, and permission boundaries that are not captured by raw table names. We introduce Schema-First Retrieval, a retrieval layer that embeds catalog metadata rather than warehouse rows. The system indexes five typed catalog objects, tables, columns, metrics, relationships, and query history, using object-specific text templates. At query time, it combines parallel vector search, lineage expansion, cross-encoder reranking, workload memory, and deterministic access-control gates before SQL generation. On CRUSH4SQL (1,534 questions), Schema-First Retrieval reaches 96.4% table recall@20 and cross-encoder reranking adds +11.1 points at column recall@10; against an equally-templated BM25 baseline, semantic retrieval is +32.8 points at table recall@5. On SEDE (857 questions), query history raises table recall@5 from 52.1% to 92.3%. On BIRD (96 questions), schema-first context reduces SQL execution errors from 15.6% to 6.2%, a 2.5x reduction. These results show that catalog selection is a first-class retrieval problem for natural language analytics, not a prompt formatting detail.

📄 PDF Abstract BibTeX arXiv:2606.28387

Code (0)

등록된 구현이 없습니다.

Tasks

Semantic Retrieval

Similar Papers 제목 키워드 기반

Towards a Gateway for Knowledge Graph Schemas Collection, Analysis, and Embedding

2023-11-21 · Mattia Fumagalli, Marco Boffo, Daqian Shi, Mayukh Bagchi 외

One of the significant barriers to the training of statistical models on knowledge graphs is the difficulty that scientists have in finding the best input data to address their prediction goal. In addition to this, a key…

Knowledge Graphs

RASL: Retrieval Augmented Schema Linking for Massive Database Text-to-SQL

2025-07-30 · Jeffrey Eben, Aitzaz Ahmad, Stephen Lau arxiv

Despite advances in large language model (LLM)-based natural language interfaces for databases, scaling to enterprise-level data catalogs remains an under-explored challenge. Prior works addressing this challenge rely on…

Field Order Should Not Matter: Permutation-Invariant Embedding Model Fine-Tuning for Structured Metadata Retrieval

2026-06-29 · Aivin V. Solatorio, Olivier Dupriez, Rafael Macalaba arxiv

We study retrieval over catalogs of structured metadata, where each record is a small schema whose fields answer different kinds of query. Embedding a record with a text encoder first serializes its fields into a string,…

Pneuma: Leveraging LLMs for Tabular Data Representation and Retrieval in an End-to-End System

2025-04-12 · Muhammad Imam Luthfi Balaka, David Alexander, Qiming Wang, Yue Gong 외

Finding relevant tables among databases, lakes, and repositories is the first step in extracting value from data. Such a task remains difficult because assessing whether a table is relevant to a problem does not always d…

Information RetrievalRAGRetrievalRetrieval-augmented Generation+2

Rethinking Schema Linking: A Context-Aware Bidirectional Retrieval Approach for Text-to-SQL

2025-10-16 · Md Mahadi Hasan Nahid, Davood Rafiei, Weiwei Zhang, Yong Zhang arxiv

Schema linking -- the process of aligning natural language questions with database schema elements -- is a critical yet underexplored component of Text-to-SQL systems. While recent methods have focused primarily on impro…

Keyphrase ExtractionKeyword Extraction