Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Chowdhury, Suparno Roy, Anvekar, Tejas, Choudhury, Manan Roy, Khan, Muhammad Ali, Khakwani, Kaneez Zahra Rubab, Sonbol, Mohamad Bassam, Riaz, Irbaz Bin, Gupta, Vivek
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2604.15646
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917415830421504
author Chowdhury, Suparno Roy
Anvekar, Tejas
Choudhury, Manan Roy
Khan, Muhammad Ali
Khakwani, Kaneez Zahra Rubab
Sonbol, Mohamad Bassam
Riaz, Irbaz Bin
Gupta, Vivek
author_facet Chowdhury, Suparno Roy
Anvekar, Tejas
Choudhury, Manan Roy
Khan, Muhammad Ali
Khakwani, Kaneez Zahra Rubab
Sonbol, Mohamad Bassam
Riaz, Irbaz Bin
Gupta, Vivek
contents Clinicians exploring oncology trial repositories often need ad-hoc, multi-constraint queries over biomarkers, endpoints, interventions, and time, yet writing SQL requires schema expertise. We demo FD-NL2SQL, a feedback-driven clinical NL2SQL assistant for SQLite-based oncology databases. Given a natural-language question, a schema-aware LLM decomposes it into predicate-level sub-questions, retrieves semantically similar expert-verified NL2SQL exemplars via sentence embeddings, and synthesizes executable SQL conditioned on the decomposition, retrieved exemplars, and schema, with post-processing validity checks. To improve with use, FD-NL2SQL incorporates two update signals: (i) clinician edits of generated SQL are approved and added to the exemplar bank; and (ii) lightweight logic-based SQL augmentation applies a single atomic mutation (e.g., operator or column change), retaining variants only if they return non-empty results. A second LLM generates the corresponding natural-language question and predicate decomposition for accepted variants, automatically expanding the exemplar bank without additional annotation. The demo interface exposes decomposition, retrieval, synthesis, and execution results to support interactive refinement and continuous improvement.
format Preprint
id arxiv_https___arxiv_org_abs_2604_15646
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle FD-NL2SQL: Feedback-Driven Clinical NL2SQL that Improves with Use
Chowdhury, Suparno Roy
Anvekar, Tejas
Choudhury, Manan Roy
Khan, Muhammad Ali
Khakwani, Kaneez Zahra Rubab
Sonbol, Mohamad Bassam
Riaz, Irbaz Bin
Gupta, Vivek
Computation and Language
Clinicians exploring oncology trial repositories often need ad-hoc, multi-constraint queries over biomarkers, endpoints, interventions, and time, yet writing SQL requires schema expertise. We demo FD-NL2SQL, a feedback-driven clinical NL2SQL assistant for SQLite-based oncology databases. Given a natural-language question, a schema-aware LLM decomposes it into predicate-level sub-questions, retrieves semantically similar expert-verified NL2SQL exemplars via sentence embeddings, and synthesizes executable SQL conditioned on the decomposition, retrieved exemplars, and schema, with post-processing validity checks. To improve with use, FD-NL2SQL incorporates two update signals: (i) clinician edits of generated SQL are approved and added to the exemplar bank; and (ii) lightweight logic-based SQL augmentation applies a single atomic mutation (e.g., operator or column change), retaining variants only if they return non-empty results. A second LLM generates the corresponding natural-language question and predicate decomposition for accepted variants, automatically expanding the exemplar bank without additional annotation. The demo interface exposes decomposition, retrieval, synthesis, and execution results to support interactive refinement and continuous improvement.
title FD-NL2SQL: Feedback-Driven Clinical NL2SQL that Improves with Use
topic Computation and Language
url https://arxiv.org/abs/2604.15646