Data analysts are considered proficient in writing efficient database queries due to their domain expertise, business context, and optimization instincts.
Artificial intelligence (AI) tools, such as text-to-SQL, aim to democratize access to databases but often lack the optimization capabilities of human experts.
The challenge lies in finding a way to make data accessible through AI tools while maintaining the query quality that businesses heavily rely on.
The traditional approach to improving AI-generated SQL is through fine-tuning, but it has its limitations in terms of performance improvements.