Skip to content
1 min read · 139 words

@nhtio/adk/batteries/embeddings/ollama/types

Option and wire-shape types for the Ollama Embeddings adapter.

Remarks

This module builds on the shared embeddings option base owned by the OpenAI Embeddings battery (@nhtio/adk/batteries/embeddings/openai/types!BaseEmbeddingsAdapterOptions). The Ollama Embeddings battery re-exports and extends these rather than redefining them — exactly how the WebLLM Embeddings battery extends the shared base.

Interfaces

InterfaceDescription
OllamaEmbeddingsAdapterOptionsConstructor options for @nhtio/adk/batteries/embeddings/ollama/adapter!OllamaEmbeddingsAdapter.
OllamaEmbeddingsRequestBodyThe JSON request body POSTed to /api/embed.
OllamaEmbeddingsResponseBodyThe relevant subset of the /api/embed JSON response shape.
OllamaEmbeddingsRuntimeOptionsRuntime options for Ollama's /api/embed endpoint. These map directly to the options field in the Ollama request body.

References

BaseEmbeddingsAdapterOptions

Re-exports BaseEmbeddingsAdapterOptions


EmbeddingKind

Re-exports EmbeddingKind


EmbeddingsRetryConfig

Re-exports EmbeddingsRetryConfig


EmbedOptions

Re-exports EmbedOptions