Skip to content

Embedder

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/semantic/embedder.ts

Azure OpenAI embedding adapter.

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

Methods

MethodSignatureReturns
embedBatchembedBatch(texts: string[])Promise<number[][]>
embedQueryembedQuery(text: string)Promise<number[]>
isConfiguredisConfigured()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.

Was this page helpful?

Download as PDF