Skip to content

CohereRerankRequest

Namespace: Vercel.AI.Cohere

public sealed class CohereRerankRequest

Cohere rerank request.

Inheritance: object

View source

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

Headers merged over the provider headers.

Value: IDictionary<string, string>

View source

public int? MaxTokensPerDoc { get; set; }

max_tokens_per_doc, when set.

Value: int?

View source

public IReadOnlyList<JsonObject>? ObjectDocuments { get; set; }

JSON documents. They are stringified before they are sent.

Value: IReadOnlyList<JsonObject>

View source

public int? Priority { get; set; }

priority, when set.

Value: int?

View source

public string Query { get; set; }

Query text.

Value: string

View source

public IReadOnlyList<string>? TextDocuments { get; set; }

Plain-text documents.

Value: IReadOnlyList<string>

View source

public int? TopN { get; set; }

top_n, when set.

Value: int?

View source

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