Glossary · AI & ML
Fine-Tuning
The process of further training a pre-trained AI model on specific data to improve performance on a particular task.
Fine-tuning is a transfer learning technique where a pre-trained model is additionally trained on a smaller, task-specific dataset to improve its performance on that particular task. For text-to-SQL applications, fine-tuning involves training the base LLM on pairs of natural language questions and their correct SQL translations for specific database schemas. This produces a model that better understands domain-specific terminology, schema conventions, and query patterns. Fine-tuning approaches range from full model fine-tuning (updating all parameters) to parameter-efficient methods like LoRA (Low-Rank Adaptation) that update only a small subset of parameters.
In practice
How AI for Database applies it
Fig — every answer ships with the tables, rows and SQL behind it.
Related terms
See it on your own database
Connect read-only in minutes. Free models included.