--- title: fhirsql-reasoning-sql-adapters emoji: 🏥 colorFrom: blue colorTo: green sdk: gradio app_file: app.py pinned: false --- # fhirsql-reasoning-sql Translates a natural-language hospital question into a single DuckDB SQL statement, using a DoRA/LoRA fine-tune of Qwen2.5-Coder-14B-Instruct (adapters: `adelelsayed1991/fhirsql-reasoning-sql-adapters`) against the fhirsql project's FHIR-derived schema. Runs on ZeroGPU. Returns the literal string `UNANSWERABLE` when the question cannot be answered from the schema shown to the model. Reproduces the exact system prompt and chat-template format used during training (see the `fhirsql` project's `sft_train.ipynb`) so generations here match the fine-tuning distribution.