Skip to content

EmbedManyResult

Namespace: Vercel.AI.Operations

public sealed class EmbedManyResult

Result of CancellationToken).

Inheritance: object

View source

EmbedManyResult(IReadOnlyList<string>, IReadOnlyList<double[]>, OperationUsage, IReadOnlyList<OperationWarning>, JsonElement?, IReadOnlyList<ProviderResponse?>)

Section titled “EmbedManyResult(IReadOnlyList<string>, IReadOnlyList<double[]>, OperationUsage, IReadOnlyList<OperationWarning>, JsonElement?, IReadOnlyList<ProviderResponse?>)”
public EmbedManyResult(IReadOnlyList<string> values, IReadOnlyList<double[]> embeddings, OperationUsage usage, IReadOnlyList<OperationWarning> warnings, JsonElement? providerMetadata, IReadOnlyList<ProviderResponse?> responses)

Creates an embedMany result.

Parameters

Name Type Description
values IReadOnlyList<string>
embeddings IReadOnlyList<double[]>
usage OperationUsage
warnings IReadOnlyList<OperationWarning>
providerMetadata JsonElement?
responses IReadOnlyList<ProviderResponse>

View source

public IReadOnlyList<double[]> Embeddings { get; }

Embeddings in value order.

Value: IReadOnlyList<double[]>

View source

public JsonElement? ProviderMetadata { get; }

Merged provider metadata.

Value: JsonElement?

View source

public IReadOnlyList<ProviderResponse?> Responses { get; }

One response per model call.

Value: IReadOnlyList<ProviderResponse>

View source

public OperationUsage Usage { get; }

Summed token usage.

Value: OperationUsage

View source

public IReadOnlyList<string> Values { get; }

Values that were embedded.

Value: IReadOnlyList<string>

View source

public IReadOnlyList<OperationWarning> Warnings { get; }

Warnings from every chunk.

Value: IReadOnlyList<OperationWarning>

View source

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