EmbeddingResult
Namespace: Vercel.AI.Provider
public sealed class EmbeddingResultEmbedding vector result.
Inheritance: object
Constructors
Section titled “Constructors”EmbeddingResult(IReadOnlyList<float[]>, int?, IReadOnlyList<CallWarning>?, EmbeddingResponseInfo?)
Section titled “EmbeddingResult(IReadOnlyList<float[]>, int?, IReadOnlyList<CallWarning>?, EmbeddingResponseInfo?)”public EmbeddingResult(IReadOnlyList<float[]> embeddings, int? tokens, IReadOnlyList<CallWarning>? warnings = null, EmbeddingResponseInfo? response = null)Creates an embedding result.
Parameters
| Name | Type | Description |
|---|---|---|
embeddings |
IReadOnlyList<float[]> | |
tokens |
int? | |
warnings |
IReadOnlyList<CallWarning> | |
response |
EmbeddingResponseInfo |
Properties
Section titled “Properties”Embeddings
Section titled “Embeddings”public IReadOnlyList<float[]> Embeddings { get; }One vector per input value.
Value: IReadOnlyList<float[]>
Response
Section titled “Response”public EmbeddingResponseInfo? Response { get; }Raw HTTP response of this call, when the provider reports it.
Value: EmbeddingResponseInfo
Tokens
Section titled “Tokens”public int? Tokens { get; }Token usage, when the provider reports it.
Value: int?
Warnings
Section titled “Warnings”public IReadOnlyList<CallWarning> Warnings { get; }Warnings of this call.
Value: IReadOnlyList<CallWarning>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product