repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | from typing import Optional |
| #2 | from pydantic import Field |
| #3 | |
| #4 | from mem0.configs.rerankers.base import BaseRerankerConfig |
| #5 | |
| #6 | |
| #7 | class HuggingFaceRerankerConfig(BaseRerankerConfig): |
| #8 | """ |
| #9 | Configuration class for HuggingFace reranker-specific parameters. |
| #10 | Inherits from BaseRerankerConfig and adds HuggingFace-specific settings. |
| #11 | """ |
| #12 | |
| #13 | model: Optional[str] = Field(default="BAAI/bge-reranker-base", description="The HuggingFace model to use for reranking") |
| #14 | device: Optional[str] = Field(default=None, description="Device to run the model on ('cpu', 'cuda', etc.)") |
| #15 | batch_size: int = Field(default=32, description="Batch size for processing documents") |
| #16 | max_length: int = Field(default=512, description="Maximum length for tokenization") |
| #17 | normalize: bool = Field(default=True, description="Whether to normalize scores") |
| #18 |