CohereRerankResult
Namespace: Vercel.AI.Cohere
public sealed class CohereRerankResultCohere rerank result. Provider metadata stays unset.
Inheritance: object
Constructors
Section titled “Constructors”CohereRerankResult(IReadOnlyList<RerankItem>, IReadOnlyList<CohereRerankWarning>, JsonElement?, CohereRerankResponse)
Section titled “CohereRerankResult(IReadOnlyList<RerankItem>, IReadOnlyList<CohereRerankWarning>, JsonElement?, CohereRerankResponse)”public CohereRerankResult(IReadOnlyList<RerankItem> ranking, IReadOnlyList<CohereRerankWarning> warnings, JsonElement? providerMetadata, CohereRerankResponse response)Creates a rerank result.
Parameters
| Name | Type | Description |
|---|---|---|
ranking |
IReadOnlyList<RerankItem> | |
warnings |
IReadOnlyList<CohereRerankWarning> | |
providerMetadata |
JsonElement? | |
response |
CohereRerankResponse |
Properties
Section titled “Properties”ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Always null. The raw payload is Body.
Value: JsonElement?
Ranking
Section titled “Ranking”public IReadOnlyList<RerankItem> Ranking { get; }Documents in provider order.
Value: IReadOnlyList<RerankItem>
Response
Section titled “Response”public CohereRerankResponse Response { get; }Response id, headers, and body.
Value: CohereRerankResponse
Warnings
Section titled “Warnings”public IReadOnlyList<CohereRerankWarning> Warnings { get; }Warnings. Object documents produce one compatibility warning.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product