@nhtio/adk/batteries/embeddings
Environment-neutral aggregate barrel for bundled embeddings batteries.
Remarks
Aggregate barrel for the embeddings batteries. Re-exports only the environment-neutral embeddings battery — currently just the OpenAI battery (raw fetch, runs anywhere) — so consumers can import this barrel from either Node or the browser without dragging in environment-specific runtime requirements.
The browser/WebGPU-only WebLLM embeddings battery is reachable only through its own subpath:
@nhtio/adk/batteries/embeddings/webllm— browser-only (uses WebGPU via@mlc-ai/web-llm).
Deep-import that subpath when you need it; don't expect it to be re-exported here. The two batteries share one option base and an identical method surface — see @nhtio/adk/batteries/embeddings/openai/types!BaseEmbeddingsAdapterOptions.
References
applyEmbeddingPrefix
Re-exports applyEmbeddingPrefix
BaseEmbeddingsAdapterOptions
Re-exports BaseEmbeddingsAdapterOptions
E_INVALID_OPENAI_EMBEDDINGS_OPTIONS
Re-exports E_INVALID_OPENAI_EMBEDDINGS_OPTIONS
E_OPENAI_EMBEDDINGS_HTTP_ERROR
Re-exports E_OPENAI_EMBEDDINGS_HTTP_ERROR
E_OPENAI_EMBEDDINGS_MALFORMED_RESPONSE
Re-exports E_OPENAI_EMBEDDINGS_MALFORMED_RESPONSE
E_OPENAI_EMBEDDINGS_REQUEST_TIMEOUT
Re-exports E_OPENAI_EMBEDDINGS_REQUEST_TIMEOUT
EmbeddingKind
Re-exports EmbeddingKind
EmbeddingsRetryConfig
Re-exports EmbeddingsRetryConfig
EmbedOptions
Re-exports EmbedOptions
OpenAIEmbeddingsAdapter
Re-exports OpenAIEmbeddingsAdapter
OpenAIEmbeddingsAdapterOptions
Re-exports OpenAIEmbeddingsAdapterOptions
openAIEmbeddingsOptionsSchema
Re-exports openAIEmbeddingsOptionsSchema
OpenAIEmbeddingsRequestBody
Re-exports OpenAIEmbeddingsRequestBody
OpenAIEmbeddingsResponseBody
Re-exports OpenAIEmbeddingsResponseBody
validateOpenAIEmbeddingsOptions
Renames and re-exports validateOptions