mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Vector similarity weight is displayed incorrectly #965 feat: add rerank models to the project #724 #162 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -14,7 +14,7 @@ import { variableEnabledFieldMap } from '../constants';
|
||||
import { IPromptConfigParameters } from '../interface';
|
||||
import { excludeUnEnabledVariables } from '../utils';
|
||||
import AssistantSetting from './assistant-setting';
|
||||
import { useFetchModelId } from './hooks';
|
||||
import { useFetchLlmModelOnVisible, useFetchModelId } from './hooks';
|
||||
import ModelSetting from './model-setting';
|
||||
import PromptEngine from './prompt-engine';
|
||||
|
||||
@ -92,6 +92,7 @@ const ChatConfigurationModal = ({
|
||||
const finalValues = {
|
||||
dialog_id: initialDialog.id,
|
||||
...nextValues,
|
||||
vector_similarity_weight: 1 - nextValues.vector_similarity_weight,
|
||||
prompt_config: {
|
||||
...nextValues.prompt_config,
|
||||
parameters: promptEngineRef.current,
|
||||
@ -115,6 +116,8 @@ const ChatConfigurationModal = ({
|
||||
form.resetFields();
|
||||
};
|
||||
|
||||
useFetchLlmModelOnVisible(visible);
|
||||
|
||||
const title = (
|
||||
<Flex gap={16}>
|
||||
<ChatConfigurationAtom></ChatConfigurationAtom>
|
||||
@ -142,6 +145,7 @@ const ChatConfigurationModal = ({
|
||||
settledModelVariableMap[ModelVariableType.Precise],
|
||||
icon: fileList,
|
||||
llm_id: initialDialog.llm_id ?? modelId,
|
||||
vector_similarity_weight: 1 - initialDialog.vector_similarity_weight,
|
||||
});
|
||||
}
|
||||
}, [initialDialog, form, visible, modelId]);
|
||||
|
||||
Reference in New Issue
Block a user