Skip to content

RerankModelDocuments

Namespace: Vercel.AI.Operations

public sealed class RerankModelDocuments

Documents sent to a reranking model.

Inheritance: object

View source

RerankModelDocuments(string, IReadOnlyList<object?>)

Section titled “RerankModelDocuments(string, IReadOnlyList<object?>)”
public RerankModelDocuments(string type, IReadOnlyList<object?> values)

Creates a document batch.

Parameters

Name Type Description
type string
values IReadOnlyList<object>

View source

public string Type { get; }

text or object.

Value: string

View source

public IReadOnlyList<object?> Values { get; }

Document values.

Value: IReadOnlyList<object>

View source

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