[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"branding":3,"analytics":7,"article-new-framework-patches-many-in-context-text-to-sql-mistakes":10},{"siteName":4,"siteTagline":5,"publisherName":4,"contactEmail":6},"The Revision","Tech news, decoded.","editor@therevision.news",{"gaMeasurementId":8,"adsenseClientId":9},"G-ZW2MV82GYR","ca-pub-8533917693782264",{"article":11},{"id":12,"slug":13,"title":14,"dek":15,"body_md":16,"tags_json":17,"published_at":18,"created_at":19,"updated_at":20,"status":21,"review_note":22,"review_notes":23,"image_url":22,"persona_id":22,"persona_name":22,"section":22,"tags":24,"sources":28,"feedback":32,"feedback_at":22,"cost_usd":32,"total_tokens":32},1305,"new-framework-patches-many-in-context-text-to-sql-mistakes","New framework patches many in-context text-to-SQL mistakes","MapleDoctor detects and repairs SQL queries generated by LLMs with 13.8% higher success and far lower latency.","LLMs still churn out faulty SQL when asked to translate natural language questions.\n\nA team examined four popular in-context learning (ICL) approaches across two benchmarks and two model sizes. They catalogued 27 error types in seven categories, confirming that mistakes are the norm, not the exception. Existing fix‑up tricks trimmed errors only marginally while adding heavy compute costs and often introducing new bugs.\n\nEnter MapleDoctor, a detection‑and‑repair pipeline built on those findings. In head‑to‑head tests it repaired 13.8% more queries than prior methods, mis‑repairing virtually none, and cut repair time by 67.4%. The code is already on GitHub, inviting independent verification.\n\nThe result is a modest but concrete step toward trustworthy LLM‑driven data pipelines. It shows that, without systematic debugging, in‑context learning remains brittle, especially compared with fine‑tuned models that have long‑standing error‑handling tricks.","[\"llm\",\"text-to-sql\",\"debugging\"]","2026-06-16T04:00:00.000Z","2026-06-17T02:58:11.524Z","2026-06-17T02:58:14.413Z","published",null,[],[25,26,27],"llm","text-to-sql","debugging",[29],{"name":30,"url":31},"arXiv cs.AI","https:\u002F\u002Farxiv.org\u002Fabs\u002F2501.09310",0]