rerank api (#525)

This commit is contained in:
Archer
2023-11-28 21:13:15 +08:00
committed by GitHub
parent a74e1d7166
commit abc1e576b7
3 changed files with 9 additions and 8 deletions

View File

@@ -398,7 +398,7 @@ export async function reRankSearchResult({
if (!target) return null;
return {
...target,
score: item.score || 0
score: item.score || target.score
};
})
.filter(Boolean) as SearchDataResponseItemType[];