Catalog PyPI
Back to packageRELEASE DETAILS

0.4.0

PyPI

agentforge-reranker-cohere

Cohere managed-API reranker for AgentForge

agentaicohereragrerank
Published24 Jun 2026
Direct dependencies2
Transitive dependenciesNot calculated

README

Version 0.4.0 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
agentforge-core
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.13",
  "evaluation": "NOT_EVALUATED"
}
agentforge-core~=0.4.0runtime
cohere
Environment
{
  "extras": "",
  "marker": "extra == \"cohere\"",
  "requires_python": ">=3.13",
  "evaluation": "NOT_EVALUATED"
}
cohere>=5.0; extra == "cohere"runtime

Distribution files

2 collected
agentforge_reranker_cohere-0.4.0-py3-none-any.whl

bdist_wheel · 9.86 KB · Python py3

Source file
agentforge_reranker_cohere-0.4.0.tar.gz

sdist · 9.25 KB · Python source

Source file

Repository

PENDING
scaffoldic/agentforge-py

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:58 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:9df5ffc5b5ee22aba3e86506657fa87ba9a0777d3a0b816ca3cbe56e800a9504

Other collected versions

View all collected versions →