You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 29cfcfe
Browse filesBrowse the repository at this point in the historyBrowse files
fix(embeddings): one rule for a configured Ollama server, and stop forcing its width
Fourth round of review findings:
- Make the setup wizard's EMBEDDING_OUTPUT_DIMS optional and undefaulted for
Ollama; requiring it suppressed the server-side width detection entirely, and
its 768 default was wrong for a 384-wide model
- Replace three different notions of 'an Ollama server is configured' with one
predicate shared by the selector, the width lookup, and the embedding client:
self-hosted is served by the loopback default as the chat provider already is,
and only hosted must be pointed at a server
- Document that an ollama/ model id is taken at face value rather than falling
back, so a model absent from the server fails creation
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/environment-variables.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,7 +190,7 @@ See [Observability](/platform/self-hosting/observability).
190
190
191
191
| Variable | Description |
192
192
|----------|-------------|
193
-
|`KB_EMBEDDING_MODEL`| Embedding model for new knowledge bases. Defaults to `text-embedding-3-small`; use `ollama/<model>` for a model on your own Ollama. An unsupported value falls back to the default |
193
+
|`KB_EMBEDDING_MODEL`| Embedding model for new knowledge bases. Defaults to `text-embedding-3-small`; use `ollama/<model>` for a model on your own Ollama. An unrecognised hosted model id falls back to the default, but an `ollama/` id is taken at face value — if that model is not on the server, knowledge-base creation fails rather than falling back|
194
194
|`EMBEDDING_OUTPUT_DIMS`| Vector width new knowledge bases are stored at: `384`, `768`, `1024`, `1536` (default), or `3072`. It must be a width the chosen model can emit; anything else falls back to `1536` with a warning |
195
195
|`OPENROUTER_API_KEY`| Fallback route for the OpenAI embedding models — used when it is set and `OPENAI_API_KEY` is not the chosen path |
196
196
|`COHERE_API_KEY`| Enables the Knowledge block reranker |
0 commit comments