paper-with-me

Papers

R-Bot: An LLM-based Query Rewrite System

2024-12-02 · Zhaoyan Sun, Xuanhe Zhou, Guoliang Li

Query rewrite is essential for optimizing SQL queries to improve their execution efficiency without changing their results. Traditionally, this task has been tackled through heuristic and learning-based methods, each with its limitations in terms of inferior quality and low robustness. Recent advancements in LLMs offer a new paradigm by leveraging their superior natural language and code comprehension abilities. Despite their potential, directly applying LLMs like GPT-4 has faced challenges due to problems such as hallucinations, where the model might generate inaccurate or irrelevant results. To address this, we propose R-Bot, an LLM-based query rewrite system with a systematic approach. We first design a multi-source rewrite evidence preparation pipeline to generate query rewrite evidences for guiding LLMs to avoid hallucinations. We then propose a hybrid structure-semantics retrieval method that combines structural and semantic analysis to retrieve the most relevant rewrite evidences for effectively answering an online query. We next propose a step-by-step LLM rewrite method that iteratively leverages the retrieved evidences to select and arrange rewrite rules with self-reflection. We conduct comprehensive experiments on widely used benchmarks, and demonstrate the superior performance of our system, R-Bot, surpassing state-of-the-art query rewrite methods.

📄 PDF Abstract BibTeX arXiv:2412.01661

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Residual Connection 설명 없음
Adam 설명 없음
Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…

Similar Papers 제목 키워드 기반

LLM-R2: A Large Language Model Enhanced Rule-based Rewrite System for Boosting Query Efficiency

2024-04-19 · Zhaodonghui Li, Haitao Yuan, Huiming Wang, Gao Cong 외

Query rewrite, which aims to generate more efficient queries by altering a SQL query's structure without changing the query result, has been an important research problem. In order to maintain equivalence between the rew…

Language ModelingLanguage ModellingLarge Language Model

IterQR: An Iterative Framework for LLM-based Query Rewrite in e-Commercial Search System

2025-02-16 · Shangyu Chen, Xinyu Jia, Yingfei Zhang, Shuai Zhang 외

The essence of modern e-Commercial search system lies in matching user's intent and available candidates depending on user's query, providing personalized and precise service. However, user's query may be incorrect due t…

RAGRetrieval-augmented GenerationWorld Knowledge

Learned Graph Rewriting with Equality Saturation: A New Paradigm in Relational Query Rewrite and Beyond

2024-06-19 · George-Octavian Bărbulescu, Taiyi Wang, Zak Singh, Eiko Yoneki

Query rewrite systems perform graph substitutions using rewrite rules to generate optimal SQL query plans. Rewriting logical and physical relational query plans is proven to be an NP-hard sequential decision-making probl…

Decision Makingreinforcement-learningReinforcement LearningReinforcement Learning (RL)+1

Few-Shot Generative Conversational Query Rewriting

2020-06-09 · Shi Yu, Jiahua Liu, Jingqin Yang, Chenyan Xiong 외

Conversational query rewriting aims to reformulate a concise conversational query to a fully specified, context-independent query that can be effectively handled by existing information retrieval systems. This paper pres…

Information RetrievalRetrievalSelf-Supervised LearningZero-Shot Learning

Enhancing Conversational Search: Large Language Model-Aided Informative Query Rewriting

2023-10-15 · Fanghua Ye, Meng Fang, Shenghui Li, Emine Yilmaz

Query rewriting plays a vital role in enhancing conversational search by transforming context-dependent user queries into standalone forms. Existing approaches primarily leverage human-rewritten queries as labels to trai…

Conversational SearchLanguage ModelingLanguage ModellingLarge Language Model+1