@nhtio/adk/batteries/embeddings/ollama/adapter
Cross-environment Ollama Embeddings adapter battery.
Remarks
Opinionated embeddings battery for the Ollama /api/embed wire shape. Ships an OllamaEmbeddingsAdapter that targets any Ollama-compatible endpoint over raw fetch — no SDK dependency, so it runs unchanged in Node, the browser, edge runtimes, and workers.
The class shares its method surface, return types, prefix handling, and option base with the OpenAI Embeddings battery: the two differ only in their engine. See @nhtio/adk/batteries/embeddings/openai/types!BaseEmbeddingsAdapterOptions.
Construction validates options eagerly via @nhtio/adk/batteries/embeddings/ollama/validation!validateOptions and throws @nhtio/adk/batteries/embeddings/ollama/exceptions!E_INVALID_OLLAMA_EMBEDDINGS_OPTIONS on failure — config bugs fail loud, not at embed time.
Classes
| Class | Description |
|---|---|
| OllamaEmbeddingsAdapter | Embeddings adapter for the Ollama /api/embed wire shape. |