Skip to main content
Version: Main branch

Building, using and distributing templates

Building templates is simple with superduper using the Template component.

Once you have created a component which works for the specific models, data, and configurations chosen, you may want to transform these settings into variables, which can be set at run-time/ db.apply time.

To do that, either overwrite the values explicitly, or use the substitutions keyword.

See the simple_rag template for a fully worked out example.

Useful commands in the CLI for templates​

View all templates

superduper ls
from superduper import templates

print(templates.ls())

Install a template

superduper bootstrap <template_name>

Create a new template directory on the basis of an exising template

superduper bootstrap <template_name> --destination <output_dir>