Skip to main content

update_tasks

superduper.vector_search.update_tasks

Source code

copy_vectors​

copy_vectors(vector_index: str,
query: Union[Dict,
superduper.backends.base.query.Query],
ids: Sequence[str],
db=typing.Optional[ForwardRef('Datalayer')])
ParameterDescription
vector_indexA identifier of the vector-index.
queryA query which was used by db._build_task_workflow method
idsList of ids which were observed as added/updated documents.
dbDatalayer instance.

Copy vectors of a VectorIndex component from the databackend to the fast_vector_search backend.

delete_vectors​

delete_vectors(vector_index: str,
ids: Sequence[str],
db=typing.Optional[ForwardRef('Datalayer')])
ParameterDescription
vector_indexA identifier of vector-index.
idsList of ids which were observed as deleted documents.
dbDatalayer instance.

Delete vectors of a VectorIndex component in the fast_vector_search backend.