EmbedManyResult
Namespace: Vercel.AI.Operations
public sealed class EmbedManyResultResult of CancellationToken).
Inheritance: object
Constructors
Section titled “Constructors”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> |
Properties
Section titled “Properties”Embeddings
Section titled “Embeddings”public IReadOnlyList<double[]> Embeddings { get; }Embeddings in value order.
Value: IReadOnlyList<double[]>
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Merged provider metadata.
Value: JsonElement?
Responses
Section titled “Responses”public IReadOnlyList<ProviderResponse?> Responses { get; }One response per model call.
Value: IReadOnlyList<ProviderResponse>
public OperationUsage Usage { get; }Summed token usage.
Value: OperationUsage
Values
Section titled “Values”public IReadOnlyList<string> Values { get; }Values that were embedded.
Value: IReadOnlyList<string>
Warnings
Section titled “Warnings”public IReadOnlyList<OperationWarning> Warnings { get; }Warnings from every chunk.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product