Documentation for handle_upsert
¶
Functionality¶
The handle_upsert
method manages an upsert task by updating its status, loading necessary resources, and processing data for embeddings. It verifies the validity of an ML flow iteration and either creates or retrieves a vector DB collection. Any errors encountered during the process are caught and logged accordingly.
Parameters¶
task
: An UpsertionTaskInDb object that represents the specific upsert task to be handled.
Usage¶
- Purpose: The primary goal of this method is to orchestrate the upsert process seamlessly within the system.
Example¶
handle_upsert(task)