Embedding Класс
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Представляет внедрение, созданное с помощью объекта IEmbeddingGenerator<TInput,TEmbedding>.
public ref class Embedding
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.BinaryEmbedding), "binary")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Byte>), "uint8")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.SByte>), "int8")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Half>), "float16")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Single>), "float32")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Double>), "float64")]
[System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")]
public class Embedding
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.BinaryEmbedding), "binary")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Byte>), "uint8")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.SByte>), "int8")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Single>), "float32")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Double>), "float64")]
[System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")]
public class Embedding
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.BinaryEmbedding), "binary")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Byte>), "uint8")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.SByte>), "int8")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Half>), "float16")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Single>), "float32")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Double>), "float64")>]
[<System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")>]
type Embedding = class
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.BinaryEmbedding), "binary")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Byte>), "uint8")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.SByte>), "int8")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Single>), "float32")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.Embedding<System.Double>), "float64")>]
[<System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")>]
type Embedding = class
Public Class Embedding
- Наследование
-
Embedding
- Производный
- Атрибуты
Комментарии
Этот базовый класс предоставляет метаданные о внедрении. Производные типы предоставляют конкретные данные, содержащиеся в внедрении.
Конструкторы
| Имя | Описание |
|---|---|
| Embedding() |
Инициализирует новый экземпляр класса Embedding. |
Свойства
| Имя | Описание |
|---|---|
| AdditionalProperties |
Возвращает или задает любые дополнительные свойства, связанные с внедрением. |
| CreatedAt |
Возвращает или задает метку времени, в которой была создана внедрение. |
| Dimensions |
Возвращает размерность вектора внедрения. |
| ModelId |
Возвращает или задает идентификатор модели, используя при создании внедрения. |