fix: add missing await on reciprocalRankFusion call
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 5s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 5s
This commit is contained in:
@@ -90,7 +90,7 @@ export class SemanticSearchService {
|
||||
this.vectorSearch(query, userId, opts.threshold, opts.notebookId)
|
||||
])
|
||||
|
||||
const fusedResults = this.reciprocalRankFusion(keywordResults, semanticResults)
|
||||
const fusedResults = await this.reciprocalRankFusion(keywordResults, semanticResults)
|
||||
|
||||
return fusedResults
|
||||
.sort((a, b) => b.score - a.score)
|
||||
|
||||
Reference in New Issue
Block a user