From 0413c747a9ba33275dc4e4d3146581ed52979474 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 28 Mar 2025 13:16:56 -0700 Subject: [PATCH] refac: hide hybrid option with full context mode --- .../admin/Settings/Documents.svelte | 164 +++++++++--------- 1 file changed, 83 insertions(+), 81 deletions(-) diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index 9188a1536..fdb7910b6 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -661,89 +661,91 @@ -
-
{$i18n.t('Hybrid Search')}
-
- { - toggleHybridSearch(); - }} - /> -
-
- - {#if querySettings.hybrid === true} -
-
{$i18n.t('Reranking Model')}
- -
-
-
- -
- -
+ {#if !RAG_FULL_CONTEXT} +
+
{$i18n.t('Hybrid Search')}
+
+ { + toggleHybridSearch(); + }} + />
+ + {#if querySettings.hybrid === true} +
+
{$i18n.t('Reranking Model')}
+ +
+
+
+ +
+ +
+
+
+ {/if} {/if}