<br />

Package-neutral interface for generating embeddings across modalities.

**Signature:**

```typescript
export declare interface EmbeddingProvider 
```

## Methods

| Method | Modifiers | Description |
|---|---|---|
| [embedContent(content)](https://developers.google.com/edge/api/mediapipe/js/tasks-retrieval.embeddingprovider.md.txt#embeddingproviderembedcontent) |   | Generates a high-dimensional vector embedding for the given content parts. Returns null if the content parts are unsupported by this provider. |

## EmbeddingProvider.embedContent() {#embeddingproviderembedcontent}

Generates a high-dimensional vector embedding for the given content parts. Returns null if the content parts are unsupported by this provider.

**Signature:**

```typescript
embedContent(content: readonly ContentPart[]): Promise<Float32Array | number[] | null> | Float32Array | number[] | null;
```

### Parameters

| Parameter | Type | Description |
|---|---|---|
| content | readonly ContentPart\[\] |   |

**Returns:**

Promise\<Float32Array \| number\[\] \| null\> \| Float32Array \| number\[\] \| null