EmbedResult
Namespace: Vercel.AI.Operations
public sealed class EmbedResultResult of CancellationToken).
Inheritance: object
Constructors
Section titled “Constructors”EmbedResult(string, double[], OperationUsage, IReadOnlyList<OperationWarning>, JsonElement?, ProviderResponse?)
Section titled “EmbedResult(string, double[], OperationUsage, IReadOnlyList<OperationWarning>, JsonElement?, ProviderResponse?)”public EmbedResult(string value, double[] embedding, OperationUsage usage, IReadOnlyList<OperationWarning> warnings, JsonElement? providerMetadata, ProviderResponse? response)Creates an embed result.
Parameters
| Name | Type | Description |
|---|---|---|
value |
string | |
embedding |
double[] | |
usage |
OperationUsage | |
warnings |
IReadOnlyList<OperationWarning> | |
providerMetadata |
JsonElement? | |
response |
ProviderResponse |
Properties
Section titled “Properties”Embedding
Section titled “Embedding”public double[] Embedding { get; }Embedding vector.
Value: double[]
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata.
Value: JsonElement?
Response
Section titled “Response”public ProviderResponse? Response { get; }Provider response.
Value: ProviderResponse
public OperationUsage Usage { get; }Token usage.
Value: OperationUsage
public string Value { get; }Value that was embedded.
Value: string
Warnings
Section titled “Warnings”public IReadOnlyList<OperationWarning> Warnings { get; }Warnings.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product