Commit 229c8acd by heheer Committed by GitHub

fix rerank model undefined (#4674)

parent 1465999c
...@@ -177,7 +177,7 @@ export async function dispatchDatasetSearch( ...@@ -177,7 +177,7 @@ export async function dispatchDatasetSearch(
}); });
// Rerank // Rerank
const { totalPoints: reRankTotalPoints, modelName: reRankModelName } = formatModelChars2Points({ const { totalPoints: reRankTotalPoints, modelName: reRankModelName } = formatModelChars2Points({
model: rerankModelData.model, model: rerankModelData?.model,
inputTokens: reRankInputTokens, inputTokens: reRankInputTokens,
modelType: ModelTypeEnum.rerank modelType: ModelTypeEnum.rerank
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment