ソースを参照

fix: hybrid search may pass rerank enable false (#2467)

Joel 1 年間 前
コミット
767d8a4b05
共有1 個のファイルを変更した1 個の追加0 個の削除を含む
  1. 1 0
      web/app/components/datasets/common/retrieval-method-config/index.tsx

+ 1 - 0
web/app/components/datasets/common/retrieval-method-config/index.tsx

@@ -89,6 +89,7 @@ const RetrievalMethodConfig: FC<Props> = ({
           onChosen={() => onChange({
           onChosen={() => onChange({
             ...value,
             ...value,
             search_method: RETRIEVE_METHOD.hybrid,
             search_method: RETRIEVE_METHOD.hybrid,
+            reranking_enable: true,
           })}
           })}
           chosenConfig={
           chosenConfig={
             <RetrievalParamConfig
             <RetrievalParamConfig