{ submitHandler(); saveHandler(); }} >
{$i18n.t('General Settings')}
{$i18n.t('Scan for documents from {{path}}', { path: '/data/docs' })}
{ scanHandler(); console.log('check'); }} type="button" disabled={scanDirLoading} >
{$i18n.t('Scan')}
{#if scanDirLoading}
{/if}
{$i18n.t('Update Embedding Model')}
{ embeddingModelUpdateHandler(); }} disabled={updateEmbeddingModelLoading} > {#if updateEmbeddingModelLoading}
{:else}
{/if}
{$i18n.t( 'Warning: If you update or change your embedding model, you will need to re-import all documents.' )}
{$i18n.t('Chunk Params')}
{$i18n.t('Chunk Size')}
{$i18n.t('Chunk Overlap')}
{$i18n.t('PDF Extract Images (OCR)')}
{ pdfExtractImages = !pdfExtractImages; }}>{pdfExtractImages ? $i18n.t('On') : $i18n.t('Off')}
{$i18n.t('Query Params')}
{$i18n.t('Top K')}
{$i18n.t('RAG Template')}
{#if showResetConfirm}
{$i18n.t('Are you sure?')}
{ const res = resetVectorDB(localStorage.token).catch((error) => { toast.error(error); return null; }); if (res) { toast.success($i18n.t('Success')); } showResetConfirm = false; }} >
{ showResetConfirm = false; }} >
{:else}
{ showResetConfirm = true; }} >
{$i18n.t('Reset Vector Storage')}
{/if}
{$i18n.t('Save')}