Skip to main content

agentforge-reranker-sentence-transformers

SentenceTransformers cross-encoder reranker for the AgentForge framework (feat-021 default concrete impl).

Registers as agentforge.rerankers:sentence-transformers and implements the Reranker ABC from agentforge-core.

Installation

pip install agentforge-reranker-sentence-transformers[sentence-transformers]

The [sentence-transformers] extra pulls in sentence-transformers>=3.0 (~500MB for base + one model). Without it, the production factory raises ModuleError with pip remediation.

Usage

from agentforge import Retriever
from agentforge_reranker_sentence_transformers import (
    SentenceTransformersReranker,
)

reranker = SentenceTransformersReranker.from_config(
    model="cross-encoder/ms-marco-MiniLM-L-6-v2",
)
retriever = Retriever(
    store=vector_store,
    embedder=embedding_client,
    reranker=reranker,
    over_fetch_factor=3,
)
results = await retriever.retrieve("how do I deploy?", top_k=5)

Score normalisation

The cross-encoder returns raw logits (typically -10..+10). The reranker applies a sigmoid (1 / (1 + exp(-x))) so returned scores are normalised to (0, 1) — fitting the VectorMatch.score contract from agentforge-core.

License

Apache-2.0.

Metadata

Release files for agentforge-reranker-sentence-transformers 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentforge-reranker-sentence-transformers 0.4.0
File Size Uploaded Provenance Actions
agentforge_reranker_sentence_transformers-0.4.0.tar.gz 10.3 kB With provenance Details for agentforge_reranker_sentence_transformers-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentforge-reranker-sentence-transformers 0.4.0
File Interpreter ABI Platform Actions
agentforge_reranker_sentence_transformers-0.4.0-py3-none-any.whl Python 3 none any Details for agentforge_reranker_sentence_transformers-0.4.0-py3-none-any.whl

Total release size: 20.9 kB

Release files / agentforge_reranker_sentence_transformers-0.4.0.tar.gz

Download URL agentforge_reranker_sentence_transformers-0.4.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9a435ec9b4b8532aaf11e5f22e1190131a54f20bcabf37734ad2447b6cc638e0
BLAKE2b-256 checksum
How to use checksums
fa784a997fe593b6c9b3a32151f8ab62d94e410f8bb7bf76d4baeff392fb1fa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

Release files / agentforge_reranker_sentence_transformers-0.4.0-py3-none-any.whl

Download URL agentforge_reranker_sentence_transformers-0.4.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e15cc78f73098d9f57d2e18e063f4108149c67b7ec2c1c07d6f37756a07af28
BLAKE2b-256 checksum
How to use checksums
6c76c340da3ce60ffc77a642f122853e18c390ee293fedd6856074774d4e16f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

Security for agentforge-reranker-sentence-transformers 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agentforge_reranker_sentence_transformers-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page