This repository contains a Spice application for plasticlist.org, enabling super-fast SQL queries, vector searches, and LLM-based chat interactions over the dataset.
Clone this repository and navigate to the project directory:
Set up your .env.local file:
Run Spice. Ensure the working directory is plasticlist:
This will set up the datasets and the configured LLM model for queries and searches.
spice sqlUse the spice sql command to run SQL queries against the datasets. For example, to query the samples dataset:
This retrieves up to 10 records where the category is "plastic."
spice searchPerform vector-based searches using the spice search command. Example:
This finds results related to ocean pollution prevention from the dataset.
spice chatEngage with the dataset through an LLM using the spice chat command. Example:
The LLM will generate a response based on the dataset and the GPT model configured in the spicepod.yml file.
spicepod.yml file to add new datasets or models.This project is licensed under the MIT License. See the LICENSE file for details.