# Embedder

**Kind:** Class

**Source:** [`atloria-monorepo/libs/agent-core/src/semantic/embedder.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/semantic/embedder.ts#L61)

Azure OpenAI embedding adapter.

Sends texts to the Azure OpenAI embeddings endpoint and returns
vector representations. Handles batching, rate limiting, and
error propagation.

## Methods

| Method | Signature | Returns |
|---|---|---|
| `embedBatch` | `embedBatch(texts: string[])` | `Promise<number[][]>` |
| `embedQuery` | `embedQuery(text: string)` | `Promise<number[]>` |
| `isConfigured` | `isConfigured()` | `boolean` |

## Where it refuses work

- `Embedder` stops the work with an early return when `texts.length === 0`.

## When something fails

- `Embedder` handles failure in 2 places: it lets it reach the caller in all 2.
