Repository navigation
fix(server): honour [embedding]/[vector] config and UTEKE_EMBEDDING_BACKEND (#1399) - #1401
Merged
Merged
Conversation
…ACKEND (#1399) uteke-serve opened the store with Uteke::open(), which hardcodes the onnx backend, so an external OpenAI-compatible or Ollama embedder could never be used. The server now resolves the embedder (env backend > [embedding] backend > onnx) and the [vector] engine and opens the store with open_with_embedding_and_graph, as the CLI does. An unsupported backend exits with an actionable error. The project-local file stays untrusted for embedding.* keys via the shared layered resolver. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
ajianaz
added a commit
that referenced
this pull request
Oct 9, 2026
* fix(docker): skip the ONNX download for non-onnx backends and fail clearly on unwritable /data (#1398) (#1400) The entrypoint now resolves the embedding backend (UTEKE_EMBEDDING_BACKEND, then [embedding] backend in $UTEKE_HOME/uteke.toml, then onnx) and only downloads the local model for onnx. If a download is needed but the data dir is not writable it exits with an actionable message. Data dir follows UTEKE_HOME (default /data). Covered by integration tests that run the script with a fake curl and a fake uteke-serve. Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]> * fix(server): honour [embedding]/[vector] config and UTEKE_EMBEDDING_BACKEND (#1399) (#1401) uteke-serve opened the store with Uteke::open(), which hardcodes the onnx backend, so an external OpenAI-compatible or Ollama embedder could never be used. The server now resolves the embedder (env backend > [embedding] backend > onnx) and the [vector] engine and opens the store with open_with_embedding_and_graph, as the CLI does. An unsupported backend exits with an actionable error. The project-local file stays untrusted for embedding.* keys via the shared layered resolver. Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]> * chore(release): v0.20.1 - version bump, changelog, docs sync Patch release with the two embedder fixes (#1398, #1399) cherry-picked from develop; version files, skill version lines, core-contract.json and the CHANGELOG entry updated. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
uteke-servenow reads[embedding](backend, model, api_key, base_url, endpoint_path, dims) and[vector](backend) from uteke.toml andUTEKE_EMBEDDING_BACKENDfrom the environment, and opens the store withopen_with_embedding_and_graphlike the CLI does. Backend precedence: non-empty env >[embedding] backend>onnx. An unsupported backend exits at startup with a message naming the supported ones and where to set it.UTEKE_EMBEDDING_{BASE_URL,MODEL,DIMS,API_KEY,ENDPOINT_PATH}keep winning over the file inside the core, as before. Existing deployments without these settings behave exactly as before (onnx, default tier/recall/graph configs).Why
Closes #1399.
uteke-servecalledUteke::open(), which hardcodes the onnx backend and default embedding settings, andServerFileConfighad no[embedding]section, so an external embedder could not be used even though docs/configuration.md listsUTEKE_EMBEDDING_BACKEND. The project-localuteke.tomlstays untrusted forembedding.*keys through the shared layered resolver (covered by a test).Testing
-D warnings,cargo test --workspacegreen; 5 new unit tests (default onnx, toml selects openai with its settings and[vector], env beats toml and an empty env is ignored, unsupported backend error text, untrusted project file cannot pick the embedder)uteke-serve, started it withUTEKE_EMBEDDING_BACKEND=openai+UTEKE_EMBEDDING_BASE_URLpointing at a fake OpenAI-compatible server (768 dims).POST /rememberandPOST /recallreturned success and the fake server logged 2 requests to/v1/embeddingswithmodelanddimensions: 768(the configured values). Not run: a real embedder, Docker, or the labs deployment[embed_fallback], tier/recall/graph/jaccard settings are still not read by the server (they use the core defaults as before); that remains part of refactor: unify the mirrored config schema structs (CLI Config vs server ServerFileConfig) #1355🤖 Generated with Claude Code