Skip to content

Documentation for handle_delete

Functionality

The handle_delete function manages the deletion process for a specified task. It updates the task status, retrieves the relevant iteration and plugin details, and executes the deletion of objects from the vector database.

Parameters

  • task: A DeletionTaskInDb object representing the deletion request, including object IDs and the embedding model ID.

Usage

  • Purpose: This function is designed to execute the task of removing objects from the vector database while simultaneously updating its status.

Example

# Given a valid deletion task:
handle_delete(task)