Use cross-encoder to rerank search results by default on GPU machines

Latest sentence-transformer package uses GPU for cross-encoder. This
makes it fast enough to enable reranking on machines with GPU.

Enabling search reranking by default allows (at least) users with GPUs
to side-step learning the UI affordance to rerank results
(i.e hitting Cmd/Ctrl-Enter or ENTER).
This commit is contained in:
Debanjum Singh Solanky
2024-02-14 18:37:53 +05:30
parent 42d4bc6b14
commit 1105d8814f
3 changed files with 10 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ dependencies = [
"pyyaml == 6.0",
"rich >= 13.3.1",
"schedule == 1.1.0",
"sentence-transformers == 2.3.1",
"sentence-transformers == 2.5.1",
"transformers >= 4.28.0",
"torch == 2.0.1",
"uvicorn == 0.17.6",