FD-NL2SQL: Feedback-Driven Clinical NL2SQL that Improves with Use
arXiv cs.CL / 4/20/2026
📰 NewsSignals & Early TrendsTools & Practical UsageModels & Research
Key Points
- FD-NL2SQL is a feedback-driven clinical NL2SQL assistant designed for SQLite-based oncology trial databases, helping clinicians write multi-constraint SQL without deep schema knowledge.
- The system uses a schema-aware LLM to decompose a clinician’s natural-language question into predicate-level sub-questions, retrieves semantically similar expert-verified NL2SQL exemplars, and synthesizes executable SQL with validity checks.
- It improves over time by learning from clinician-approved edits to generated SQL and by applying lightweight logic-based SQL augmentation that keeps only variants yielding non-empty results.
- An additional LLM automatically reconstructs natural-language questions and predicate decompositions for accepted augmented/edited variants, expanding the exemplar bank without further manual annotation.
- The demo interface supports interactive refinement by exposing decomposition, retrieval, synthesis, and execution outcomes to users during query building.
💡 Insights using this article
This article is featured in our daily AI news digest — key takeaways and action items at a glance.



