{ submitHandler(); saveHandler(); }} >
{$i18n.t('General Settings')}
{$i18n.t('Embedding Engine')}
{ embeddingModel = ''; }} >
{$i18n.t('Default (SentenceTransformer)')}
{$i18n.t('Ollama')}
{$i18n.t('Update Embedding Model')}
{#if embeddingEngine === 'ollama'}
{#if !embeddingModel}
{$i18n.t('Select a model')}
{/if} {#each $models.filter((m) => m.id && !m.external) as model}
{model.name + ' (' + (model.size / 1024 ** 3).toFixed(1) + ' GB)'}
{/each}
{ embeddingModelUpdateHandler(); }} disabled={updateEmbeddingModelLoading} > {#if updateEmbeddingModelLoading}
{:else}
{/if}
{:else}
{ embeddingModelUpdateHandler(); }} disabled={updateEmbeddingModelLoading} > {#if updateEmbeddingModelLoading}
{:else}
{/if}
{/if}
{$i18n.t( 'Warning: If you update or change your embedding model, you will need to re-import all documents.' )}
{$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('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')}