Skip to content

RerankOptions

Namespace: Vercel.AI

public sealed class RerankOptions

Rerank options.

Inheritance: object

View source

public IReadOnlyList<string> Documents { get; set; }

Documents.

Value: IReadOnlyList<string>

View source

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

Headers for this call. They override the provider headers.

Value: IReadOnlyDictionary<string, string>

View source

public IRerankingModel? Model { get; set; }

Reranking model.

Value: IRerankingModel

View source

public string Query { get; set; }

Query.

Value: string

View source

public int? TopN { get; set; }

Maximum results.

Value: int?

View source

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