mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 03:48:24 +00:00
rerank api (#525)
This commit is contained in:
@@ -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[];
|
||||
|
Reference in New Issue
Block a user