mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
refac: styling
This commit is contained in:
parent
f41a8e67e8
commit
985e54b662
1 changed files with 64 additions and 66 deletions
|
|
@ -1059,7 +1059,7 @@
|
|||
{/if}
|
||||
|
||||
{#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true}
|
||||
<div class=" py-0.5 w-full justify-between">
|
||||
<div class=" mb-2.5 py-0.5 w-full justify-between">
|
||||
<Tooltip
|
||||
content={$i18n.t(
|
||||
'The Weight of BM25 Hybrid Search. 0 more lexical, 1 more semantic. Default 0.5'
|
||||
|
|
@ -1069,13 +1069,14 @@
|
|||
>
|
||||
<div class="flex w-full justify-between">
|
||||
<div class=" self-center text-xs font-medium">
|
||||
{$i18n.t('Weight of BM25 Retrieval')}
|
||||
{$i18n.t('BM25 Weight')}
|
||||
</div>
|
||||
<button
|
||||
class="p-1 px-3 text-xs flex rounded-sm transition shrink-0 outline-hidden"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
RAGConfig.HYBRID_BM25_WEIGHT = (RAGConfig?.HYBRID_BM25_WEIGHT ?? null) === null ? 0.5 : null;
|
||||
RAGConfig.HYBRID_BM25_WEIGHT =
|
||||
(RAGConfig?.HYBRID_BM25_WEIGHT ?? null) === null ? 0.5 : null;
|
||||
}}
|
||||
>
|
||||
{#if (RAGConfig?.HYBRID_BM25_WEIGHT ?? null) === null}
|
||||
|
|
@ -1088,18 +1089,7 @@
|
|||
</Tooltip>
|
||||
|
||||
{#if (RAGConfig?.HYBRID_BM25_WEIGHT ?? null) !== null}
|
||||
<div class="flex w-full justify-between">
|
||||
<div class=" text-left text-xs font-small">
|
||||
{$i18n.t('lexical')}
|
||||
</div>
|
||||
<div class=" text-right text-xs font-small" style="padding-right: 64px;">
|
||||
{$i18n.t('semantic')}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex mt-0.5 space-x-2">
|
||||
<div class=" text-left text-xs font-small">
|
||||
{$i18n.t('lexical')}
|
||||
</div>
|
||||
<div class=" flex-1">
|
||||
<input
|
||||
id="steps-range"
|
||||
|
|
@ -1110,10 +1100,18 @@
|
|||
bind:value={RAGConfig.HYBRID_BM25_WEIGHT}
|
||||
class="w-full h-2 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"
|
||||
/>
|
||||
|
||||
<div class="py-0.5">
|
||||
<div class="flex w-full justify-between">
|
||||
<div class=" text-left text-xs font-small">
|
||||
{$i18n.t('lexical')}
|
||||
</div>
|
||||
<div class=" text-right text-xs font-small">
|
||||
{$i18n.t('semantic')}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<input
|
||||
bind:value={RAGConfig.HYBRID_BM25_WEIGHT}
|
||||
|
|
|
|||
Loading…
Reference in a new issue