Text-to-SQL with DuckDB-NSQL-7B using Hugging Face Dataset Viewer API
AI Impact Summary
This CAPABILITY unlocks an AI-assisted text-to-SQL workflow that uses DuckDB-NSQL-7B (DuckDB-NSQL-7B-v0.1) and the Hugging Face Dataset Viewer API to translate natural language queries into DuckDB SQL against a dataset like world-cities-geo. The process downloads the dataset schema or a parquet, creates a DuckDB table, and then prompts the model to generate valid SQL, enabling zero-code data exploration. However, this introduces dependencies on the model and HF API latency and requires strong query validation and access governance to prevent incorrect or unsafe SQL.
Affected Systems
- Date
- Date not specified
- Change type
- capability
- Severity
- info