Jaa


Embedding<T> Class

Definition

Represents an embedding composed of a vector of T values.

generic <typename T>
public ref class Embedding sealed : Microsoft::Extensions::AI::Embedding
public sealed class Embedding<T> : Microsoft.Extensions.AI.Embedding
type Embedding<'T> = class
    inherit Embedding
Public NotInheritable Class Embedding(Of T)
Inherits 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.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to