Aggiorna la logica di gestione degli stati di ingestione per includere 'INGESTING' e 'INGESTION_QUEUE'

This commit is contained in:
andrea.terzani
2025-04-14 16:55:48 +02:00
parent 4aa7885bfe
commit 9505817a05

View File

@@ -319,13 +319,13 @@ const confirmDeleteFromVectorStore = (id) => {
//ingestion
const startIndividualngestion = (id) => {
toast.add({ severity: 'info', summary: 'Info', detail: 'Starting Ingestion', life: 3000 });
fe_status = "INGESTION_QUEUE"
toast.add({ severity: 'info', summary: 'Info', detail: 'Starting Ingestion...', life: 3000 });
fe_status.value = "INGESTION_QUEUE"
axios.get(`/test/ingest_document/${id}`)
.then(response => {
if (response.data.status == "OK") {
toast.add({ severity: 'success', summary: 'Success', detail: 'Document ingestion started...', life: 3000 });
fe_status = "INGESTION_QUEUE"
fe_status.value = "INGESTION_QUEUE"
}
if (response.data.status == "ERROR") {
toast.add({ severity: 'error', summary: 'Success', detail: 'Error ingesting document:' + response.data.message, life: 3000 });