{ 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 knowledgeRes = await reindexKnowledgeFiles(localStorage.token).catch((error) => { toast.error(`${error}`); return null; }); if (!knowledgeRes) { return; } const knowledgeMetadataRes = await reindexKnowledgeMetadata(localStorage.token).catch( (error) => { toast.error(`${error}`); return null; } ); if (!knowledgeMetadataRes) { return; } const memoryRes = await reindexMemoryVectors(localStorage.token).catch((error) => { toast.error(`${error}`); return null; }); if (memoryRes) { toast.success($i18n.t('Success')); } }} />
{ submitHandler(); }} >

{$i18n.t('Documents')}

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