Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/embedder-ollama / OllamaEmbedderOptions

Interface: OllamaEmbedderOptions

Defined in: packages/embedder-ollama/src/index.ts:35

Options accepted by createOllamaEmbedder.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
baseUrl?readonlystringDefault 'http://127.0.0.1:11434'.packages/embedder-ollama/src/index.ts:39
digest?readonlystringOptional pre-resolved digest (e.g. from a probe done elsewhere). When set, the embedder uses this value instead of issuing a POST /api/show request.packages/embedder-ollama/src/index.ts:63
dim?readonlynumberOptional dimensionality hint. When known up-front, the canonical id is stable from the first embed() call instead of being resolved from the response.packages/embedder-ollama/src/index.ts:45
embedPath?readonlystringOptional API path override (default '/api/embed').packages/embedder-ollama/src/index.ts:65
fetchImpl?readonly(input, init?) => Promise<Response>Override fetch. Used by the test suite to inject a mock HTTP fixture. Production callers should leave this unset so the embedder uses the platform's globalThis.fetch.packages/embedder-ollama/src/index.ts:51
legacyEmbedPath?readonlystringOptional API path override (default '/api/embeddings').packages/embedder-ollama/src/index.ts:67
model?readonlystringDefault 'nomic-embed-text'.packages/embedder-ollama/src/index.ts:37
showPath?readonlystringOptional API path override (default '/api/show').packages/embedder-ollama/src/index.ts:69
skipDigestProbe?readonlybooleanIf true, skip the POST /api/show model-digest probe at construction. Used in test fixtures where the digest is pre-populated.packages/embedder-ollama/src/index.ts:57