Embeddings Class

Definition

Representation of the response data from an embeddings request. Embeddings measure the relatedness of text strings and are commonly used for search, clustering, recommendations, and other similar scenarios.

public class Embeddings : System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.Embeddings>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.Embeddings>
type Embeddings = class
    interface IJsonModel<Embeddings>
    interface IPersistableModel<Embeddings>
Public Class Embeddings
Implements IJsonModel(Of Embeddings), IPersistableModel(Of Embeddings)
Inheritance
Embeddings
Implements

Properties

Data

Embedding values for the prompts submitted in the request.

Usage

Usage counts for tokens input using the embeddings API.

Explicit Interface Implementations

IJsonModel<Embeddings>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<Embeddings>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<Embeddings>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<Embeddings>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<Embeddings>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to