diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index adc607168..cd0581394 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -241,7 +241,6 @@ }; const toggleHybridSearch = async () => { - querySettings.hybrid = !querySettings.hybrid; querySettings = await updateQuerySettings(localStorage.token, querySettings); }; @@ -313,372 +312,285 @@ }} >
-
-
{$i18n.t('General Settings')}
+
+
+
{$i18n.t('General')}
-
-
{$i18n.t('Embedding Model Engine')}
-
- -
-
+
- {#if embeddingEngine === 'openai'} -
- - - -
- {:else if embeddingEngine === 'ollama'} -
- - - -
- {/if} - - {#if embeddingEngine === 'ollama' || embeddingEngine === 'openai'} -
-
{$i18n.t('Embedding Batch Size')}
-
- -
-
- -
-
- {/if} - -
-
{$i18n.t('Hybrid Search')}
- - -
- -
-
{$i18n.t('Full Context Mode')}
-
- - - -
-
-
- -
- -
-
-
{$i18n.t('Embedding Model')}
- - {#if embeddingEngine === 'ollama'} -
-
- -
-
- {:else} -
-
- +
+
+
{$i18n.t('Embedding Model Engine')}
+
+ +
- {#if embeddingEngine === ''} - - {/if} -
- {/if} - -
- {$i18n.t( - 'Warning: If you update or change your embedding model, you will need to re-import all documents.' - )} -
- - {#if querySettings.hybrid === true} -
-
{$i18n.t('Reranking Model')}
- -
-
+ {#if embeddingEngine === 'openai'} +
+ + +
+ {:else if embeddingEngine === 'ollama'} +
+ + +
- +
+ + {#if embeddingEngine === ''} + + {/if} +
+ {/if} +
+ +
+ {$i18n.t( + 'Warning: If you update or change your embedding model, you will need to re-import all documents.' + )}
- {/if} -
-
+ {#if embeddingEngine === 'ollama' || embeddingEngine === 'openai'} +
+
{$i18n.t('Embedding Batch Size')}
-
-
{$i18n.t('Content Extraction')}
+
+ +
+
+ {/if} -
-
{$i18n.t('Engine')}
-
- +
+
{$i18n.t('Full Context Mode')}
+
+ + + +
-
- {#if showTikaServerUrl} -
-
- +
{$i18n.t('Hybrid Search')}
+
+ { + toggleHybridSearch(); + }} />
- {/if} - {#if showDocumentIntelligenceConfig} -
- + {#if querySettings.hybrid === true} +
+
{$i18n.t('Reranking Model')}
- -
- {/if} -
+
+
+
+ +
+ +
+
+
+ {/if}
-
-
{$i18n.t('OneDrive')}
+
+
{$i18n.t('Query')}
-
-
-
{$i18n.t('Enable OneDrive')}
-
- -
-
-
+
-
- -
-
{$i18n.t('Query Params')}
- -
-
-
{$i18n.t('Top K')}
- -
+
+
{$i18n.t('Top K')}
+
{#if querySettings.hybrid === true} -
-
- {$i18n.t('Minimum Score')} +
+
+
{$i18n.t('Minimum Score')}
+
+ +
- -
- +
+ {$i18n.t( + 'Note: If you set a minimum score, the search will only return documents with a score greater than or equal to the minimum score.' + )}
{/if} -
- {#if querySettings.hybrid === true} -
- {$i18n.t( - 'Note: If you set a minimum score, the search will only return documents with a score greater than or equal to the minimum score.' - )} -
- {/if} - -
-
{$i18n.t('RAG Template')}
- -