{ const res = await deleteAllFiles(localStorage.token).catch((error) => { toast.error(`${error}`); return null; }); if (res) { toast.success($i18n.t('Success')); } }} /> { const res = resetVectorDB(localStorage.token).catch((error) => { toast.error(`${error}`); return null; }); if (res) { toast.success($i18n.t('Success')); } }} /> { const res = await reindexKnowledgeFiles(localStorage.token).catch((error) => { toast.error(`${error}`); return null; }); if (res) { toast.success($i18n.t('Success')); } }} />
{ submitHandler(); }} >

{$i18n.t('Documents')}

{#if RAGConfig}
{#if RAGConfig.CONTENT_EXTRACTION_ENGINE === ''} {:else if RAGConfig.CONTENT_EXTRACTION_ENGINE === 'datalab_marker'}