Skip to content

VoyageRerankResult

Namespace: Vercel.AI.Voyage

public sealed class VoyageRerankResult

Voyage rerank result.

Inheritance: object

View source

VoyageRerankResult(IReadOnlyList<RerankItem>, IReadOnlyList<VoyageWarning>, IReadOnlyDictionary<string, string>, JsonElement)

Section titled “VoyageRerankResult(IReadOnlyList<RerankItem>, IReadOnlyList<VoyageWarning>, IReadOnlyDictionary<string, string>, JsonElement)”
public VoyageRerankResult(IReadOnlyList<RerankItem> ranking, IReadOnlyList<VoyageWarning> warnings, IReadOnlyDictionary<string, string> headers, JsonElement body)

Creates a rerank result.

Parameters

Name Type Description
ranking IReadOnlyList<RerankItem>
warnings IReadOnlyList<VoyageWarning>
headers IReadOnlyDictionary<string, string>
body JsonElement

View source

public JsonElement Body { get; }

Raw response body.

Value: JsonElement

View source

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

Response headers.

Value: IReadOnlyDictionary<string, string>

View source

public IReadOnlyList<RerankItem> Ranking { get; }

Documents in provider order.

Value: IReadOnlyList<RerankItem>

View source

public IReadOnlyList<VoyageWarning> Warnings { get; }

Warnings. Object documents produce one compatibility warning.

Value: IReadOnlyList<VoyageWarning>

View source

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