hypav2 enhancment 2
This commit is contained in:
@@ -276,7 +276,7 @@
|
||||
<span class="text-textcolor mt-4">{language.type}</span>
|
||||
|
||||
<SelectInput value={
|
||||
$DataBase.supaMemoryType === 'hypaV2' ? 'hypaV2' :
|
||||
$DataBase.hypav2 ? 'hypaV2' :
|
||||
$DataBase.supaMemoryType !== 'none' ? 'supaMemory' :
|
||||
$DataBase.hanuraiEnable ? 'hanuraiMemory' : 'none'
|
||||
} on:change={(v) => {
|
||||
@@ -284,15 +284,19 @@
|
||||
const value = v.target.value
|
||||
if (value === 'supaMemory'){
|
||||
$DataBase.supaMemoryType = 'distilbart'
|
||||
$DataBase.hypav2 = false
|
||||
$DataBase.hanuraiEnable = false
|
||||
} else if (value === 'hanuraiMemory'){
|
||||
$DataBase.supaMemoryType = 'none'
|
||||
$DataBase.hypav2 = false
|
||||
$DataBase.hanuraiEnable = true
|
||||
} else if (value === 'hypaV2') {
|
||||
$DataBase.supaMemoryType = 'hypaV2'
|
||||
$DataBase.hypav2= true
|
||||
$DataBase.hanuraiEnable = false
|
||||
} else {
|
||||
$DataBase.supaMemoryType = 'none'
|
||||
$DataBase.hypav2 = false
|
||||
$DataBase.hanuraiEnable = false
|
||||
}
|
||||
}}>
|
||||
@@ -309,26 +313,27 @@
|
||||
<div class="flex">
|
||||
<Check bind:check={$DataBase.hanuraiSplit} name="Text Spliting"/>
|
||||
</div>
|
||||
{:else if $DataBase.supaMemoryType === 'hypaV2'}
|
||||
{:else if $DataBase.hypav2}
|
||||
<span class="mb-2 text-textcolor2 text-sm text-wrap break-words max-w-full">{language.hypaV2Desc}</span>
|
||||
<span class="text-textcolor mt-4">{language.SuperMemory} {language.model}</span>
|
||||
<SelectInput className="mt-2 mb-2" bind:value={$DataBase.supaMemoryType}>
|
||||
<OptionInput value="distilbart" >distilbart-cnn-6-6 (Free/Local)</OptionInput>
|
||||
<OptionInput value="instruct35" >OpenAI 3.5 Turbo Instruct</OptionInput>
|
||||
<OptionInput value="subModel" >{language.submodel}</OptionInput>
|
||||
<OptionInput value="distilbart">distilbart-cnn-6-6 (Free/Local)</OptionInput>
|
||||
<OptionInput value="instruct35">OpenAI 3.5 Turbo Instruct</OptionInput>
|
||||
<OptionInput value="subModel">{language.submodel}</OptionInput>
|
||||
</SelectInput>
|
||||
<span class="text-textcolor">{language.SuperMemory} Prompt</span>
|
||||
<TextInput size="sm" marginBottom bind:value={$DataBase.supaMemoryPrompt} placeholder="Leave it blank to use default"/>
|
||||
<span class="text-textcolor">{language.HypaMemory} Model</span>
|
||||
<SelectInput className="mt-2 mb-2" bind:value={$DataBase.hypaModel}>
|
||||
<OptionInput value="MiniLM" >MiniLM-L6-v2 (Free / Local)</OptionInput>
|
||||
<OptionInput value="ada" >OpenAI Ada (Davinci / Curie Only)</OptionInput>
|
||||
<OptionInput value="MiniLM">MiniLM-L6-v2 (Free / Local)</OptionInput>
|
||||
<OptionInput value="nomic">Nomic (Free / Local)</OptionInput>
|
||||
<OptionInput value="ada">OpenAI Ada (Davinci / Curie Only)</OptionInput>
|
||||
</SelectInput>
|
||||
<span class="text-textcolor">{language.hypaChunkSize}</span>
|
||||
<NumberInput size="sm" marginBottom bind:value={$DataBase.hypaChunkSize} min={100} />
|
||||
<span class="text-textcolor">{language.hypaAllocatedTokens}</span>
|
||||
<NumberInput size="sm" marginBottom bind:value={$DataBase.hypaAllocatedTokens} min={100} />
|
||||
{:else if $DataBase.supaMemoryType !== 'none'}
|
||||
{:else if ($DataBase.supaMemoryType !== 'none' && $DataBase.hypav2 === false)}
|
||||
<span class="mb-2 text-textcolor2 text-sm text-wrap break-words max-w-full">{language.supaDesc}</span>
|
||||
<span class="text-textcolor mt-4">{language.SuperMemory} {language.model}</span>
|
||||
<SelectInput className="mt-2 mb-2" bind:value={$DataBase.supaMemoryType}>
|
||||
|
||||
Reference in New Issue
Block a user