SuperDuperDB / superduperdb

🔮 SuperDuperDB: Bring AI to your database! Build, deploy and manage any AI application directly with your existing data infrastructure, without moving your data. Including streaming inference, scalable model training and vector search.
https://superduperdb.com
Apache License 2.0
4.55k stars 445 forks source link

[APP] Create an "application" component which uses a template #2117

Closed blythed closed 1 month ago

blythed commented 1 month ago

Building on #2116, we would like to "configure" a template, and ship this as an application:

from superduperdb import Application

application = Application(
    'my_app',
    template='<template_identifier>',
    model_id='my_model_id',
    collection='my_collection',
    key='X',
)

# this loads the template, applies the variables and then applies the built component
db.apply(application)

We can consider using hooks pre_create, on_create, post_create etc.. to achieve this.