← all work

Self-learning Few-shot Text-to-SQL

A retrieval-driven few-shot engine that harvests successful queries as exemplars and injects them dynamically — lifting text-to-SQL accuracy from 60% to 95% with no retraining.

role: Designer & developer

60% → 95%
text-to-SQL accuracy
$0
fine-tuning cost

Idea

Instead of fine-tuning, let the system learn from its own successes: every query that produces a validated result becomes a new in-context exemplar.

Result

Accuracy rose from 60% to 95% — with no model retraining or fine-tuning cost — and keeps improving as usage grows.

nearest neighbours