Skip to content

RerankStartEvent

Namespace: Vercel.AI.Operations

public sealed class RerankStartEvent

Start event for rerank.

Inheritance: object

View source

RerankStartEvent(string, string, IReadOnlyDictionary<string, object?>, string, string, IReadOnlyList<object?>, string, int?, int, IReadOnlyDictionary<string, string>?, JsonElement?)

Section titled “RerankStartEvent(string, string, IReadOnlyDictionary<string, object?>, string, string, IReadOnlyList<object?>, string, int?, int, IReadOnlyDictionary<string, string>?, JsonElement?)”
public RerankStartEvent(string callId, string operationId, IReadOnlyDictionary<string, object?> runtimeContext, string provider, string modelId, IReadOnlyList<object?> documents, string query, int? topN, int maxRetries, IReadOnlyDictionary<string, string>? headers, JsonElement? providerOptions)

Creates a start event.

Parameters

Name Type Description
callId string
operationId string
runtimeContext IReadOnlyDictionary<string, object>
provider string
modelId string
documents IReadOnlyList<object>
query string
topN int?
maxRetries int
headers IReadOnlyDictionary<string, string>
providerOptions JsonElement?

View source

public string CallId { get; }

Call id.

Value: string

View source

public IReadOnlyList<object?> Documents { get; }

Submitted documents.

Value: IReadOnlyList<object>

View source

public IReadOnlyDictionary<string, string>? Headers { get; }

Request headers.

Value: IReadOnlyDictionary<string, string>

View source

public int MaxRetries { get; }

Retry limit.

Value: int

View source

public string ModelId { get; }

Model id.

Value: string

View source

public string OperationId { get; }

ai.rerank.

Value: string

View source

public string Provider { get; }

Provider id.

Value: string

View source

public JsonElement? ProviderOptions { get; }

Provider options.

Value: JsonElement?

View source

public string Query { get; }

Query.

Value: string

View source

public IReadOnlyDictionary<string, object?> RuntimeContext { get; }

Runtime context.

Value: IReadOnlyDictionary<string, object>

View source

public int? TopN { get; }

Maximum results.

Value: int?

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product