![]() |
VOOZH | about |
dotnet add package LMSupply.Reranker --version 0.34.20
NuGet\Install-Package LMSupply.Reranker -Version 0.34.20
<PackageReference Include="LMSupply.Reranker" Version="0.34.20" />
<PackageVersion Include="LMSupply.Reranker" Version="0.34.20" />Directory.Packages.props
<PackageReference Include="LMSupply.Reranker" />Project file
paket add LMSupply.Reranker --version 0.34.20
#r "nuget: LMSupply.Reranker, 0.34.20"
#:package LMSupply.Reranker@0.34.20
#addin nuget:?package=LMSupply.Reranker&version=0.34.20Install as a Cake Addin
#tool nuget:?package=LMSupply.Reranker&version=0.34.20Install as a Cake Tool
Local semantic reranking for .NET with cross-encoder models.
using LMSupply.Reranker;
// Load the default model
await using var reranker = await LocalReranker.LoadAsync("default");
// Rerank documents
var results = await reranker.RerankAsync(
query: "What is machine learning?",
documents: ["ML is a branch of AI...", "The weather is nice..."],
topK: 5);
foreach (var result in results)
Console.WriteLine($"{result.Index}: {result.Score:F3}");
| Alias | Model | Size | Tokenizer | Description |
|---|---|---|---|---|
default |
MS MARCO MiniLM L6 | ~90MB | WordPiece | Best speed/quality balance |
fast |
MS MARCO TinyBERT | ~18MB | WordPiece | Ultra-fast, latency-critical |
quality |
BGE Reranker Base | ~440MB | Unigram | Higher accuracy, multilingual |
large |
BGE Reranker Large | ~1.1GB | Unigram | Highest accuracy |
multilingual |
BGE Reranker v2-m3 | ~1.1GB | Unigram | 8K context, 100+ languages |
The reranker automatically detects the correct tokenizer type:
| Type | Detection | Example Models |
|---|---|---|
| WordPiece | vocab.txt |
MS MARCO MiniLM, TinyBERT |
| Unigram | tokenizer.json (type: Unigram) |
bge-reranker-base, XLM-RoBERTa |
| BPE | tokenizer.json (type: BPE) |
Some multilingual models |
This ensures compatibility with virtually any cross-encoder model from HuggingFace.
# NVIDIA GPU
dotnet add package Microsoft.ML.OnnxRuntime.Gpu
# Windows (AMD/Intel/NVIDIA)
dotnet add package Microsoft.ML.OnnxRuntime.DirectML
var options = new RerankerOptions
{
Provider = ExecutionProvider.Auto, // GPU auto-detection
MaxSequenceLength = 512,
BatchSize = 32
};
var reranker = await LocalReranker.LoadAsync("default", options);
["token", score])| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on LMSupply.Reranker:
| Package | Downloads |
|---|---|
|
FluxIndex.Providers.LMSupply
LMSupply local AI embedding, reranking, and text completion provider for FluxIndex |
|
|
IronHive.Cli.Core
IronHive CLI Core - Agent loop, tools, session management, and provider integrations for building AI-powered CLI tools |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.34.20 | 110 | 6/2/2026 |
| 0.34.19 | 136 | 5/25/2026 |
| 0.34.18 | 143 | 5/21/2026 |
| 0.34.17 | 404 | 5/20/2026 |
| 0.34.16 | 112 | 5/15/2026 |
| 0.34.15 | 102 | 5/14/2026 |
| 0.34.13 | 110 | 5/12/2026 |
| 0.34.12 | 256 | 5/11/2026 |
| 0.34.3 | 91 | 5/7/2026 |
| 0.34.2 | 94 | 5/5/2026 |
| 0.34.1 | 113 | 5/3/2026 |
| 0.34.0 | 96 | 5/2/2026 |
| 0.33.0 | 110 | 5/2/2026 |
| 0.32.7 | 104 | 5/2/2026 |
| 0.32.3 | 169 | 4/30/2026 |
| 0.32.0 | 143 | 4/15/2026 |
| 0.31.0 | 116 | 4/14/2026 |
| 0.30.0 | 118 | 4/14/2026 |
| 0.29.0 | 124 | 4/13/2026 |
| 0.28.0 | 109 | 4/13/2026 |