<br />

List of embeddings with an optional timestamp. One and only one of the two 'floatEmbedding' and 'quantizedEmbedding' will contain data, based on whether or not the embedder was configured to perform scalar quantization.

**Signature:**

    export declare interface Embedding 

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [floatEmbedding](https://developers.google.com/edge/api/mediapipe/js/tasks-text.embedding#embeddingfloatembedding) |   | number\[\] | Floating-point embedding. Empty if the embedder was configured to perform scalar-quantization. |
| [quantizedEmbedding](https://developers.google.com/edge/api/mediapipe/js/tasks-text.embedding#embeddingquantizedembedding) |   | Uint8Array | Scalar-quantized embedding. Empty if the embedder was not configured to perform scalar quantization. |
| [headIndex](https://developers.google.com/edge/api/mediapipe/js/tasks-text.embedding#embeddingheadindex) |   | number | The index of the classifier head these categories refer to. This is useful for multi-head models. |
| [headName](https://developers.google.com/edge/api/mediapipe/js/tasks-text.embedding#embeddingheadname) |   | string | The name of the classifier head, which is the corresponding tensor metadata name. |

## Embedding.floatEmbedding {#embeddingfloatembedding}

Floating-point embedding. Empty if the embedder was configured to perform scalar-quantization.

**Signature:**

    floatEmbedding?: number[];

## Embedding.quantizedEmbedding {#embeddingquantizedembedding}

Scalar-quantized embedding. Empty if the embedder was not configured to perform scalar quantization.

**Signature:**

    quantizedEmbedding?: Uint8Array;

## Embedding.headIndex {#embeddingheadindex}

The index of the classifier head these categories refer to. This is useful for multi-head models.

**Signature:**

    headIndex: number;

## Embedding.headName {#embeddingheadname}

The name of the classifier head, which is the corresponding tensor metadata name.

**Signature:**

    headName: string;