Skip to content

Commit 3395858

Browse files
committed
fix(cli): 修复检索命令中的 rerank 参数字段名
1 parent a3c985c commit 3395858

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/commands/knowledge/retrieve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ async function runWithAkSk(
203203
};
204204

205205
if (flags.topK !== undefined) body.TopK = flags.topK as number;
206-
if (flags.rerank) body.Rerank = true;
206+
if (flags.rerank) body.EnableReranking = true;
207207
if (flags.rerankTopN !== undefined) body.RerankTopN = flags.rerankTopN as number;
208208

209209
const pathname = `/${workspaceId}/index/retrieve`;

0 commit comments

Comments
 (0)