spice-text-to-sql
Installation
SKILL.md
Text-to-SQL with Spice (Bring Your Own Model)
Generate accurate SQL for Spice.ai using your own LLM. This skill provides the schema introspection workflow, type reference, SQL dialect rules, and prompt template needed to produce correct queries on the first attempt — avoiding trial-and-error.
How It Works
- Read
spicepod.yamlto know which datasets, models, embeddings, and features are configured - Introspect the Spice catalog to discover tables, columns, and types
- Build a prompt containing schema, type info, and dialect rules
- Send the prompt to your LLM to generate SQL
- Execute the SQL — on failure, feed the error back and retry
Step 0 — Read the Spicepod Configuration
Before generating SQL, read the application's spicepod.yaml to understand what is available. This tells you: