Skip to main content
Version: Main branch

Core superduper usage

In this section we walk through how to perform the key operations with superduper. There are three key patterns C-A-E:

Connect

from superduper import superduper
db = superduper('<data-connection>')

Apply

db.apply(<ai_component>)

Package

<ai_component>.export('<path>')
from superduper import Template
template = Template(
'<template-name>',
component=<ai_component>,
substitutions={'<value_to_replace>': '<variable_name>', ...}
)

Execute

to_execute = <build_your_database_query_or_model_prediction>
db.execute(to_execute)