From 3dc34c240291887ce6d68f55ff1ee315fefb356c Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 10 May 2025 18:33:52 +0400 Subject: [PATCH] feat: external reranker settings ui --- .../admin/Settings/Documents.svelte | 133 +++++++++++------- 1 file changed, 85 insertions(+), 48 deletions(-) diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index 108c6cb1d..a3a5299bc 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -645,6 +645,41 @@ {#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true} +
+
+
+ {$i18n.t('Reranking Engine')} +
+
+ +
+
+ + {#if RAGConfig.RAG_RERANKING_ENGINE === 'external'} +
+ + + +
+ {/if} +
+
{$i18n.t('Reranking Model')}
@@ -656,62 +691,64 @@ placeholder={$i18n.t('Set reranking model (e.g. {{model}})', { model: 'BAAI/bge-reranker-v2-m3' })} - bind:value={rerankingModel} + bind:value={RAGConfig.RAG_RERANKING_MODEL} />
- + {/if} + + {/if}