OpenRouter finds data-quirk prompts boost text-to-SQL accuracy to 99%

openrouter.ai8 min read

OpenRouter tested a text-to-SQL agent across six AI models using a synthetic shop database to determine what drives accuracy. They found that adding a concise note explaining data quirks in the prompt raised overall accuracy from 95% to 99%, while five of the six models sent no failing queries. Open article →