feat(oss): add reranker + per-search rerank to the TypeScript OSS SDK (#6055)

This commit is contained in:
Kartik
2026-07-09 22:18:38 +05:30
committed by GitHub
parent 2a4aa232b2
commit 6a801bfe2f
32 changed files with 2173 additions and 19 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
from typing import Optional
from pydantic import Field
from mem0.configs.rerankers.base import BaseRerankerConfig
@@ -10,6 +11,6 @@ class CohereRerankerConfig(BaseRerankerConfig):
Inherits from BaseRerankerConfig and adds Cohere-specific settings.
"""
model: Optional[str] = Field(default="rerank-english-v3.0", description="The Cohere rerank model to use")
model: Optional[str] = Field(default="rerank-v3.5", description="The Cohere rerank model to use")
return_documents: bool = Field(default=False, description="Whether to return the document texts in the response")
max_chunks_per_doc: Optional[int] = Field(default=None, description="Maximum number of chunks per document")