From 4a6d333a032130a7a84acfbbc959360f18b83825 Mon Sep 17 00:00:00 2001 From: _00_ <131402327+rgaricano@users.noreply.github.com> Date: Mon, 14 Jul 2025 17:48:49 +0200 Subject: [PATCH] FEAT: Frontend HybridSearch-BM25 Slider FEAT: Frontend HybridSearch-BM25 Slider Front-end modification for the BM25-Weight parameter input. This proposal modifies the numerical typed input to a slider similar to the advanced model parameters. --- .../admin/Settings/Documents.svelte | 75 ++++++++++++++----- 1 file changed, 56 insertions(+), 19 deletions(-) diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index 993cc6553f..4f341de7b0 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -1011,25 +1011,62 @@ {/if} {#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true} -
-
- {$i18n.t('Weight of BM25 Retrieval')} -
-
- -
-
- {/if} - {/if} +
+ +
+
+ {$i18n.t('Weight of BM25 Retrieval')} +
+ +
+
+ + {#if (RAGConfig?.HYBRID_BM25_WEIGHT ?? null) !== null} +
+
+ +
+
+ +
+
+ {/if} +
+ {/if} + {/if}
{$i18n.t('RAG Template')}