mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
fix: retrive config cannot enable rerank
This commit is contained in:
@ -64,7 +64,7 @@ const RetrievalMethodConfig: FC<Props> = ({
|
||||
isActive={
|
||||
value.search_method === RETRIEVE_METHOD.semantic
|
||||
}
|
||||
onClick={() => onChange({
|
||||
onSwitched={() => onChange({
|
||||
...value,
|
||||
search_method: RETRIEVE_METHOD.semantic,
|
||||
})}
|
||||
@ -85,7 +85,7 @@ const RetrievalMethodConfig: FC<Props> = ({
|
||||
isActive={
|
||||
value.search_method === RETRIEVE_METHOD.fullText
|
||||
}
|
||||
onClick={() => onChange({
|
||||
onSwitched={() => onChange({
|
||||
...value,
|
||||
search_method: RETRIEVE_METHOD.fullText,
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user