Reparameterized clustering algorithm to harvest in-context examples for nl2sql
AssigneeOracle International Corporation
InventorDuy Vu
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle International Corporation
InventorDuy Vu
Estimating the term…
Techniques are provided for a clustering algorithm to harvest in-context examples from Text-to-SQL logs. The method includes receiving vector representations of natural language utterances and corresponding queries in a programming query language. The clustering algorithm may be reparametrized using a training dataset by sampling the vector representations, estimating local radius parameter values from a distribution of pairwise distances, and iteratively executing the clustering algorithm while incrementally relaxing density constraints to identify paraphrases and unique queries. Hyperparameter tuning may be performed by adjusting clustering parameters based on evaluation metrics to obtain a fine-tuned algorithm. The method can further augment examples with ground truth examples and execute the fine-tuned clustering algorithm on the augmented set to generate clustered data points representing groups of paraphrases and unique queries. These clustered results may then be used to fine-tune or train a generative model, improving Text-to-SQL system performance and adaptability.
A computer-implemented method comprising:
A system comprising:
One or more non-transitory computer-readable media storing instructions which, when executed by one or more processors, cause the one or more processors to perform operations comprising:
Dependencies are inferred from the claim text.