fix: retrive config cannot enable rerank

pull/12097/head
AkaraChen 1 year ago
parent 6055e27050
commit f894fb05c1

@ -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,
})}

Loading…
Cancel
Save