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 ZeroEntropyRerankerConfig(BaseRerankerConfig): |
| #8 | """ |
| #9 | Configuration for Zero Entropy reranker. |
| #10 | |
| #11 | Attributes: |
| #12 | model (str): Model to use for reranking. Defaults to "zerank-1". |
| #13 | api_key (str): Zero Entropy API key. If not provided, will try to read from ZERO_ENTROPY_API_KEY environment variable. |
| #14 | top_k (int): Number of top documents to return after reranking. |
| #15 | """ |
| #16 | |
| #17 | model: str = Field( |
| #18 | default="zerank-1", |
| #19 | description="Model to use for reranking. Available models: zerank-1, zerank-1-small" |
| #20 | ) |
| #21 | api_key: Optional[str] = Field( |
| #22 | default=None, |
| #23 | description="Zero Entropy API key" |
| #24 | ) |
| #25 | top_k: Optional[int] = Field( |
| #26 | default=None, |
| #27 | description="Number of top documents to return after reranking" |
| #28 | ) |
| #29 |