Enhancements in Data Querying: Applying MMR-Integrated In-Context Learning to LLM-based Text-to-SQL

In the modern business ecosystem, informed decision-making relies heavily on effective data utilization. To enable more intuitive and efficient data access, Text-to-SQL technologies serve as a crucial bridge. This paper introduces an improvement by integrating the Maximal Marginal Relevance (MMR) with In-Context Learning (ICL) to improve the performance of Large Language Models (LLMs) in generating SQL queries. This research focuses on strategically deploying MMR within ICL frameworks, optimizing prompt construction by balancing relevance and diversity of examples. This method was rigorously tested on datasets from domains such as tobacco and automotive marketing, as well as the cross-domain SPIDER benchmark. Results demonstrate that the proposed method excels in both domain-specific and complex questions.

Authors

Institutions

Publication Details

Published
2024-11-01
DOI
https://doi.org/10.1109/cac63892.2024.10865575
Citations
3
Primary Topic
Advanced Database Systems and Queries
Type
article
Field-Weighted Citation Impact
1.05
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancements in Data Querying: Applying MMR-Integrated In-Context Learning to LLM-based Text-to-SQL

Ming Huang, Zhenyu Zhou, Junfang Li, Yang Chuniie
3 citations
Advanced Database Systems and Queries
1.05
article

Enhancements in Data Querying: Applying MMR-Integrated In-Context Learning to LLM-based Text-to-SQL

Ming Huang, Zhenyu Zhou, Junfang Li, Yang Chuniie
article en
3 citations

Abstract

In the modern business ecosystem, informed decision-making relies heavily on effective data utilization. To enable more intuitive and efficient data access, Text-to-SQL technologies serve as a crucial bridge. This paper introduces an improvement by integrating the Maximal Marginal Relevance (MMR) with In-Context Learning (ICL) to improve the performance of Large Language Models (LLMs) in generating SQL queries. This research focuses on strategically deploying MMR within ICL frameworks, optimizing prompt construction by balancing relevance and diversity of examples. This method was rigorously tested on datasets from domains such as tobacco and automotive marketing, as well as the cross-domain SPIDER benchmark. Results demonstrate that the proposed method excels in both domain-specific and complex questions.

Alibaba Group (China) (CN), Zhejiang University (CN)
Quality Education
Openalex Percentile: Top 20%
Advanced Database Systems and Queries
1.05
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Enhancements in Data Querying: Applying MMR-Integrated In-Context Learning to LLM-based Text-to-SQL — Ming Huang, Zhenyu Zhou, et al. · (2024) | TGRS Research Map | TGRS