From 8198807fc93b6f99ab280b38a030e7e0b899bd8f Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 9 Jun 2024 02:28:52 -0700 Subject: [PATCH] refac: document settings > admin settings --- src/lib/components/admin/Settings.svelte | 89 +++++- .../Settings/Documents.svelte} | 144 ++++++++- .../admin/Settings/WebSearch.svelte | 285 ++++++++++++++++++ src/lib/components/workspace/Documents.svelte | 35 +-- 4 files changed, 512 insertions(+), 41 deletions(-) rename src/lib/components/{documents/Settings/General.svelte => admin/Settings/Documents.svelte} (84%) create mode 100644 src/lib/components/admin/Settings/WebSearch.svelte diff --git a/src/lib/components/admin/Settings.svelte b/src/lib/components/admin/Settings.svelte index b98badc6e..65cfbeb85 100644 --- a/src/lib/components/admin/Settings.svelte +++ b/src/lib/components/admin/Settings.svelte @@ -1,5 +1,5 @@ @@ -195,7 +218,7 @@ saveHandler(); }} > -
+
{$i18n.t('General Settings')}
@@ -498,6 +521,123 @@
+
+
{$i18n.t('Query Params')}
+ +
+
+
{$i18n.t('Top K')}
+ +
+ +
+
+ + {#if querySettings.hybrid === true} +
+
+ {$i18n.t('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')}
+