Add a Dataset and query data
Add a dataset and query it using SQL Query in the Playground
To add a dataset to the Spice app, navigate to the Code tab.
Use the Components sidebar on the right to select from available Data Connectors, Model Providers, and ready-to-use Datasets.
Adding a ready-to-use Dataset
Navigate to Code tab.
In Components sidebar, click the Datasets tab.
Select and add the NYC Taxi Trips dataset
Note the configuration has been added to the editor
Click Save in the code toolbar and then Deploy on popup card that appears in the bottom right.
Navigate to the Playground tab, open the dataset reference, and click on the
spice.samples.taxi_trips
dataset to insert a sample query into the SQL editor. Then, click Run Selection.
[Optional] Execute a SQL query using cURL
Go app Settings and copy one of the app API Keys.
Replace [API-KEY]
in the sample below with your API Key and execute from a terminal.
🎉 Congratulations, you've now added a dataset and queried it.
Continue to Step 4 to add an AI Model and chat with the dataset.
Need help? Ask a question, raise issues, and provide feedback to the Spice AI team on Discord.
Last updated