fix(server): rerank scores calc (#13016)

fix AI-257
This commit is contained in:
DarkSky
2025-07-07 23:05:02 +08:00
committed by GitHub
parent 2d050a317f
commit 181ccf5a45
18 changed files with 329 additions and 109 deletions
@@ -215,7 +215,6 @@ export class CopilotContextService implements OnApplicationBootstrap {
topK * 2,
threshold
),
this.models.copilotContext.matchWorkspaceEmbedding(
embedding,
workspaceId,
@@ -237,8 +236,9 @@ export class CopilotContextService implements OnApplicationBootstrap {
!fileChunks.length &&
!workspaceChunks.length &&
!scopedWorkspaceChunks?.length
)
) {
return [];
}
return await this.embeddingClient.reRank(
content,