Class VllmReranker
public class VllmReranker : IReranker
- Inheritance
-
VllmReranker
- Implements
- Inherited Members
Constructors
VllmReranker(HttpClient?, string, string, string?)
public VllmReranker(HttpClient? httpClient = null, string model = "Qwen/Qwen3-Reranker-0.6B", string baseUrl = "http://localhost:8003", string? apiKey = null)
Parameters
httpClientHttpClientmodelstringbaseUrlstringapiKeystring
Methods
RerankAsync(string, IReadOnlyList<VectorSearchResult>, CancellationToken)
public Task<IReadOnlyList<VectorSearchResult>> RerankAsync(string query, IReadOnlyList<VectorSearchResult> results, CancellationToken cancellationToken = default)
Parameters
querystringresultsIReadOnlyList<VectorSearchResult>cancellationTokenCancellationToken