RerankModelCall
Namespace: Vercel.AI.Operations
public sealed class RerankModelCallArguments for doRerank.
Inheritance: object
Constructors
Section titled “Constructors”RerankModelCall(RerankModelDocuments, string, int?, JsonElement?, IReadOnlyDictionary<string, string>?, CancellationToken)
Section titled “RerankModelCall(RerankModelDocuments, string, int?, JsonElement?, IReadOnlyDictionary<string, string>?, CancellationToken)”public RerankModelCall(RerankModelDocuments documents, string query, int? topN, JsonElement? providerOptions, IReadOnlyDictionary<string, string>? headers, CancellationToken cancellationToken)Creates a model call.
Parameters
| Name | Type | Description |
|---|---|---|
documents |
RerankModelDocuments | |
query |
string | |
topN |
int? | |
providerOptions |
JsonElement? | |
headers |
IReadOnlyDictionary<string, string> | |
cancellationToken |
CancellationToken |
Properties
Section titled “Properties”CancellationToken
Section titled “CancellationToken”public CancellationToken CancellationToken { get; }Cancellation token.
Value: CancellationToken
Documents
Section titled “Documents”public RerankModelDocuments Documents { get; }Documents.
Value: RerankModelDocuments
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; }Request headers. Rerank does not append a user-agent.
Value: IReadOnlyDictionary<string, string>
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; }Provider options.
Value: JsonElement?
public string Query { get; }Query.
Value: string
public int? TopN { get; }Maximum results.
Value: int?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product