Are you an LLM? You can read better optimized documentation at /api/@nhtio/adk/batteries/embeddings/openai/helpers.md for this page in Markdown format
@nhtio/adk/batteries/embeddings/openai/helpers
Shared, engine-agnostic helpers for the embeddings batteries.
Remarks
Owned by the OpenAI Embeddings battery (the environment-neutral one) and re-used by the WebLLM Embeddings battery, so query/document prefixing behaves identically across both — the engine is the only difference between the batteries.
Functions
| Function | Description |
|---|---|
| applyEmbeddingPrefix | Applies the configured query/document instruction prefix to a batch of inputs. |