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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
baseUrl? | readonly | string | Default 'http://127.0.0.1:11434'. | packages/embedder-ollama/src/index.ts:39 |
digest? | readonly | string | Optional 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? | readonly | number | Optional 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? | readonly | string | Optional 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? | readonly | string | Optional API path override (default '/api/embeddings'). | packages/embedder-ollama/src/index.ts:67 |
model? | readonly | string | Default 'nomic-embed-text'. | packages/embedder-ollama/src/index.ts:37 |
showPath? | readonly | string | Optional API path override (default '/api/show'). | packages/embedder-ollama/src/index.ts:69 |
skipDigestProbe? | readonly | boolean | If 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 |