Skip to content

Commit 49ddf53

Browse files
authored
fix: upgrade rerankers and recommended Cohere model (#142)
1 parent bcea663 commit 49ddf53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ from rerankers import Reranker
123123
# Example remote API-based reranker:
124124
my_config = RAGLiteConfig(
125125
db_url="postgresql://my_username:my_password@my_host:5432/my_database"
126-
reranker=Reranker("cohere", lang="en", api_key=COHERE_API_KEY)
126+
reranker=Reranker("rerank-v3.5", model_type="cohere", api_key=COHERE_API_KEY) # Multilingual
127127
)
128128

129129
# Example local cross-encoder reranker per language (this is the default):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies = [
2828
"pydantic (>=2.7.0)",
2929
# Reranking:
3030
"langdetect (>=1.0.9)",
31-
"rerankers[flashrank] (>=0.6.0)",
31+
"rerankers[api,flashrank] (>=0.10.0)",
3232
# Storage:
3333
"duckdb (>=1.1.3)",
3434
"duckdb-engine (>=0.16.0)",

0 commit comments

Comments
 (0)