fix: retrive config cannot enable rerank

This commit is contained in:
AkaraChen 2024-12-10 16:04:42 +08:00
parent 6055e27050
commit f894fb05c1
1 changed files with 2 additions and 2 deletions

View File

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