Skip to content

Commit a27b3c3

Browse files
committed
chore: upgrade rerank model to v4.0-fast
- Updated default model from rerank-v3.5 to rerank-v4.0-fast - v4.0 is Cohere's latest reranking model (Dec 2024) - Supports 100+ languages with better accuracy - Alternative: rerank-v4.0-pro for max accuracy
1 parent 97d3913 commit a27b3c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/services/search_v2/hybrid_searcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(
2828
pinecone_index,
2929
embedding_fn,
3030
cohere_api_key: Optional[str] = None,
31-
rerank_model: str = "rerank-v3.5",
31+
rerank_model: str = "rerank-v4.0-fast",
3232
):
3333
self.index = pinecone_index
3434
self.embed = embedding_fn

0 commit comments

Comments
 (0)