<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:**

```typescript
export declare interface Embedding 
```

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [floatEmbedding](https://developers.google.com/edge/api/mediapipe/js/tasks-retrieval.embedding.md.txt#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-retrieval.embedding.md.txt#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-retrieval.embedding.md.txt#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-retrieval.embedding.md.txt#embeddingheadname) |   | string | The name of the classifier head, which is the corresponding tensor metadata name. |

## Embedding.floatEmbedding

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

**Signature:**

```typescript
floatEmbedding?: number[];
```

## Embedding.quantizedEmbedding

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

**Signature:**

```typescript
quantizedEmbedding?: Uint8Array;
```

## Embedding.headIndex

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

**Signature:**

```typescript
headIndex: number;
```

## Embedding.headName

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

**Signature:**

```typescript
headName: string;
```