Generation of complex database queries and API calls from natural
language utterances
- URL: http://arxiv.org/abs/2012.08146v1
- Date: Tue, 15 Dec 2020 08:28:52 GMT
- Title: Generation of complex database queries and API calls from natural
language utterances
- Abstract summary: We present a method that transforms the query generation problem into an intent classification and slot filling problem.
For questions similar to the ones in the training dataset, it produces complex queries with high accuracy.
For other questions, it can use a template-based approach or predict query pieces to construct the queries, still at a higher accuracy than sequence-to-sequence models.
- Score: 0.0
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: Generating queries corresponding to natural language questions is a long
standing problem. Traditional methods lack language flexibility, while newer
sequence-to-sequence models require large amount of data. Schema-agnostic
sequence-to-sequence models can be fine-tuned for a specific schema using a
small dataset but these models have relatively low accuracy. We present a
method that transforms the query generation problem into an intent
classification and slot filling problem. This method can work using small
datasets. For questions similar to the ones in the training dataset, it
produces complex queries with high accuracy. For other questions, it can use a
template-based approach or predict query pieces to construct the queries, still
at a higher accuracy than sequence-to-sequence models. On a real-world dataset,
a schema fine-tuned state-of-the-art generative model had 60\% exact match
accuracy for the query generation task, while our method resulted in 92\% exact
match accuracy.
Related papers
- Rationalization Models for Text-to-SQL [13.792561265515003]
We introduce a framework for generating Chain-of-Thought (CoT) rationales to enhance text-to-thought model fine-tuning.
The process begins with manually annotating a small set of examples, which are then used to prompt a large language model.
A rationalization model is subsequently trained on the validated queries, enabling extensive synthetic CoT annotations.
arXiv Detail & Related papers (2025-02-10T18:38:57Z) - Less is More: Making Smaller Language Models Competent Subgraph Retrievers for Multi-hop KGQA [51.3033125256716]
We model the subgraph retrieval task as a conditional generation task handled by small language models.
Our base generative subgraph retrieval model, consisting of only 220M parameters, competitive retrieval performance compared to state-of-the-art models.
Our largest 3B model, when plugged with an LLM reader, sets new SOTA end-to-end performance on both the WebQSP and CWQ benchmarks.
arXiv Detail & Related papers (2024-10-08T15:22:36Z) - The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Models [0.9149661171430259]
We revisit schema linking when using the latest generation of large language models (LLMs)
We find empirically that newer models are adept at utilizing relevant schema elements during generation even in the presence of large numbers of irrelevant ones.
Instead of filtering contextual information, we highlight techniques such as augmentation, selection, and correction, and adopt them to improve the accuracy of our Text-to-BIRD pipeline.
arXiv Detail & Related papers (2024-08-14T17:59:04Z) - It's All Relative! -- A Synthetic Query Generation Approach for
Improving Zero-Shot Relevance Prediction [19.881193965130173]
Large language models (LLMs) have shown promise in their ability to generate synthetic query-document pairs by prompting with as few as 8 demonstrations.
We propose to reduce this burden by generating queries simultaneously for different labels.
arXiv Detail & Related papers (2023-11-14T06:16:49Z) - QTSumm: Query-Focused Summarization over Tabular Data [58.62152746690958]
People primarily consult tables to conduct data analysis or answer specific questions.
We define a new query-focused table summarization task, where text generation models have to perform human-like reasoning.
We introduce a new benchmark named QTSumm for this task, which contains 7,111 human-annotated query-summary pairs over 2,934 tables.
arXiv Detail & Related papers (2023-05-23T17:43:51Z) - DORE: Document Ordered Relation Extraction based on Generative Framework [56.537386636819626]
This paper investigates the root cause of the underwhelming performance of the existing generative DocRE models.
We propose to generate a symbolic and ordered sequence from the relation matrix which is deterministic and easier for model to learn.
Experimental results on four datasets show that our proposed method can improve the performance of the generative DocRE models.
arXiv Detail & Related papers (2022-10-28T11:18:10Z) - TabLLM: Few-shot Classification of Tabular Data with Large Language
Models [66.03023402174138]
We study the application of large language models to zero-shot and few-shot classification.
We evaluate several serialization methods including templates, table-to-text models, and large language models.
This approach is also competitive with strong traditional baselines like gradient-boosted trees.
arXiv Detail & Related papers (2022-10-19T17:08:13Z) - Conditional set generation using Seq2seq models [52.516563721766445]
Conditional set generation learns a mapping from an input sequence of tokens to a set.
Sequence-to-sequence(Seq2seq) models are a popular choice to model set generation.
We propose a novel algorithm for effectively sampling informative orders over the space of label orders.
arXiv Detail & Related papers (2022-05-25T04:17:50Z) - MK-SQuIT: Synthesizing Questions using Iterative Template-filling [0.0]
We create a framework for synthetically generating question/query pairs with as little human input as possible.
These datasets can be used to train machine translation systems to convert natural language questions into queries.
arXiv Detail & Related papers (2020-11-04T22:33:05Z) - Exploring Sequence-to-Sequence Models for SPARQL Pattern Composition [0.5639451539396457]
A booming amount of information is continuously added to the Internet as structured and unstructured data, feeding knowledge bases such as DBpedia and Wikidata.
The aim of Question Answering systems is to allow lay users to access such data using natural language without needing to write formal queries.
We show that sequence-to-sequence models are a viable and promising option to transform long utterances into complex SPARQL queries.
arXiv Detail & Related papers (2020-10-21T11:12:01Z) - Partially-Aligned Data-to-Text Generation with Distant Supervision [69.15410325679635]
We propose a new generation task called Partially-Aligned Data-to-Text Generation (PADTG)
It is more practical since it utilizes automatically annotated data for training and thus considerably expands the application domains.
Our framework outperforms all baseline models as well as verify the feasibility of utilizing partially-aligned data.
arXiv Detail & Related papers (2020-10-03T03:18:52Z) - Syntactic Question Abstraction and Retrieval for Data-Scarce Semantic
Parsing [22.490892257736043]
We propose Syntactic Question Abstraction and Retrieval (SQAR) to build a neural semantic that translates a natural language to a logical form.
SQAR generates unseen logical patterns upon the addition of new examples without re-training the model.
In contrast to a simple pattern classification approach, SQAR can generate unseen logical patterns without re-training the model.
arXiv Detail & Related papers (2020-05-01T23:05:55Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.