You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def_pre_create(self, db):
"""Pre creates the model. If the datatype is not set and the datalayer is an IbisDataBackend, the datatype is set to ``sqlvector`` or ``vector``. :param db: The datalayer instance. """ifself.datatypeisnotNone:
returnfromsuperduper.components.vector_indeximportsqlvector, vectorifdb.databackend.db_type==DBType.SQL:
self.datatype=sqlvector(shape=self.shape)
else:
self.datatype=vector(shape=self.shape)
We need to find a way to do this more generally so that apps with vectors can be deployed on all databackends, without editing.
The text was updated successfully, but these errors were encountered:
In embedding models, we have this type of logic:
We need to find a way to do this more generally so that apps with vectors can be deployed on all databackends, without editing.
The text was updated successfully, but these errors were encountered: