Cohere managed-API reranker for AgentForge
Project description
agentforge-reranker-cohere
Cohere managed-API reranker for the AgentForge framework.
Implements the Reranker ABC from agentforge-core.
Registers as agentforge.rerankers:cohere.
Installation
pip install agentforge-reranker-cohere[cohere]
Usage
from agentforge_reranker_cohere import CohereReranker
reranker = CohereReranker.from_config(
api_key="...",
model="rerank-english-v3.0",
)
Or via agentforge.yaml:
retrieval:
reranker:
name: cohere
config:
api_key: ${COHERE_API_KEY}
model: rerank-english-v3.0
The reranker forwards (query, candidate_text) pairs to
Cohere's Rerank API, normalises the returned scores to
[0, 1] (Cohere already does this — the clamp is
defensive), sorts descending, and truncates to top_k.
License
Apache-2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentforge_reranker_cohere-0.2.4.tar.gz.
File metadata
- Download URL: agentforge_reranker_cohere-0.2.4.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb9537f1053659a3e1a0dee05b64bf4eda0531b43a751723e8bea436c858fee6
|
|
| MD5 |
65ff28b95b0a9dd186b2ffb957c2a780
|
|
| BLAKE2b-256 |
5025b10f6545a52e50973e52d46421b17b91f6cff1351d99c65599fc16526b71
|
File details
Details for the file agentforge_reranker_cohere-0.2.4-py3-none-any.whl.
File metadata
- Download URL: agentforge_reranker_cohere-0.2.4-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56bf189391eaaff262380b6c188916547d9252095bc6822ca1cafb631325d2bb
|
|
| MD5 |
860431968496c0608313ae2900788dc3
|
|
| BLAKE2b-256 |
75c0e297149ef93a7ece39137418855e4155a00046ac0daf8173a2eaa70a5ab0
|