mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
fix: reranking
This commit is contained in:
parent
4ec70e3d46
commit
fbff4e19de
1 changed files with 1 additions and 1 deletions
|
|
@ -966,7 +966,7 @@ class RerankCompressor(BaseDocumentCompressor):
|
|||
)
|
||||
scores = util.cos_sim(query_embedding, document_embedding)[0]
|
||||
|
||||
if scores:
|
||||
if scores is not None:
|
||||
docs_with_scores = list(
|
||||
zip(
|
||||
documents,
|
||||
|
|
|
|||
Loading…
Reference in a new issue