Прочетете на английски

Споделяне чрез


Embedding<T> Class

Definition

Represents an embedding composed of a vector of T values.

C#
public sealed class Embedding<T> : Microsoft.Extensions.AI.Embedding

Type Parameters

T

The type of the values in the embedding vector.

Inheritance
Embedding<T>

Remarks

Typical values of T are Single, Double, or Half.

Constructors

Embedding<T>(ReadOnlyMemory<T>)

Initializes a new instance of the Embedding<T> class with the embedding vector.

Properties

AdditionalProperties

Gets or sets any additional properties associated with the embedding.

(Inherited from Embedding)
CreatedAt

Gets or sets a timestamp at which the embedding was created.

(Inherited from Embedding)
ModelId

Gets or sets the model ID using in the creation of the embedding.

(Inherited from Embedding)
Vector

Gets or sets the embedding vector this embedding represents.

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)