diff --git a/scripts/ingest-acn-requirements.php b/scripts/ingest-acn-requirements.php index 5436e6a..71edacb 100644 --- a/scripts/ingest-acn-requirements.php +++ b/scripts/ingest-acn-requirements.php @@ -20,7 +20,7 @@ * * Opzioni: --only=importante|essenziale | --dry-run | --no-purge * - * NB metodi VectorService REALI: upsertPoints(array), deletePoints(array filtro), + * NB metodi VectorService REALI: upsertBatch(array), deleteByFilter(array filtro), * ensureCollection(int dims). EmbedService: embed(text), ->dims (512). * ============================================================================ */ @@ -118,7 +118,7 @@ if (!$dryRun) { } if (!$noPurge) { try { - $vector->deletePoints(['must' => [ + $vector->deleteByFilter(['must' => [ ['key' => 'scope', 'match' => ['value' => 'SYSTEM']], ['key' => 'entity_type', 'match' => ['value' => ACN_ENTITY_TYPE]], ['key' => 'source', 'match' => ['value' => ACN_SOURCE]], @@ -133,7 +133,7 @@ if (!$dryRun) { $ok = 0; $fail = 0; $failed = []; $batch = []; $BATCH_SIZE = 32; $flush = function () use (&$batch, $vector) { if (empty($batch)) return; - $vector->upsertPoints($batch); + $vector->upsertBatch($batch); $batch = []; };