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 BaseModel, Field |
| #3 | |
| #4 | |
| #5 | class BaseRerankerConfig(BaseModel): |
| #6 | """ |
| #7 | Base configuration for rerankers with only common parameters. |
| #8 | Provider-specific configurations should be handled by separate config classes. |
| #9 | |
| #10 | This class contains only the parameters that are common across all reranker providers. |
| #11 | For provider-specific parameters, use the appropriate provider config class. |
| #12 | """ |
| #13 | |
| #14 | provider: Optional[str] = Field(default=None, description="The reranker provider to use") |
| #15 | model: Optional[str] = Field(default=None, description="The reranker model to use") |
| #16 | api_key: Optional[str] = Field(default=None, description="The API key for the reranker service") |
| #17 | top_k: Optional[int] = Field(default=None, description="Maximum number of documents to return after reranking") |
| #18 |