Skip to content

Commit

Permalink
fix: compute the scores
Browse files Browse the repository at this point in the history
  • Loading branch information
joein committed Nov 7, 2024
1 parent 31c9fea commit de71900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ documents: List[str] = [
"fastembed is supported by and maintained by Qdrant.",
]
encoder = TextCrossEncoder(model_name="Xenova/ms-marco-MiniLM-L-6-v2")
scores = encoder.rerank(query, documents)
scores = list(encoder.rerank(query, documents))

# [-11.48061752319336, 5.472434997558594]
```
Expand Down

0 comments on commit de71900

Please sign in to comment.