Aggiorna la logica di gestione degli stati di ingestione per includere 'INGESTING' e 'INGESTION_QUEUE'
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user