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>')
Execute
Execute a query:
query = db['table'].filter(...) # .select(...) | .outputs(...) | .like(...)
results = query.execute()
Use an installed Component
:
component = db.load('<component>', '<identifier>')
component.<method>(*args, **kwargs)