VoyageRerankResult
Namespace: Vercel.AI.Voyage
public sealed class VoyageRerankResultVoyage rerank result.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”public JsonElement Body { get; }Raw response body.
Value: JsonElement
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Response headers.
Value: IReadOnlyDictionary<string, string>
Ranking
Section titled “Ranking”public IReadOnlyList<RerankItem> Ranking { get; }Documents in provider order.
Value: IReadOnlyList<RerankItem>
Warnings
Section titled “Warnings”public IReadOnlyList<VoyageWarning> Warnings { get; }Warnings. Object documents produce one compatibility warning.
Value: IReadOnlyList<VoyageWarning>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product