add document dele and rebuild faiss index

This commit is contained in:
team 1
2026-02-17 14:49:35 +01:00
parent 1bb753e071
commit fcd9488a18
6 changed files with 189 additions and 50 deletions

View File

@@ -10,6 +10,7 @@ class IngestJob
{
public const TYPE_DOCUMENT = 'DOCUMENT';
public const TYPE_GLOBAL_REINDEX = 'GLOBAL_REINDEX';
/**
* Special job type used when a DocumentVersion is activated.
* Semantics: always re-ingest the selected version (even if it was previously INDEXED),
@@ -17,6 +18,12 @@ class IngestJob
*/
public const TYPE_DOCUMENT_VERSION_ACTIVATE = 'DOCUMENT_VERSION_ACTIVATE';
/**
* Job type used when a Document is hard-deleted from DB
* and must be removed from index.ndjson + vector index.
*/
public const TYPE_DOCUMENT_DELETE = 'DOCUMENT_DELETE';
public const STATUS_QUEUED = 'QUEUED';
public const STATUS_RUNNING = 'RUNNING';
public const STATUS_COMPLETED = 'COMPLETED';