GitNexus/docs
samuel mbabhazi e3e50be954
Some checks are pending
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Gitleaks / gitleaks (push) Waiting to run
Publish / Classify release event (push) Waiting to run
Publish / RC guard (marker + release-PR skip) (push) Blocked by required conditions
Publish / ci (push) Blocked by required conditions
Publish / Publish to npm (push) Blocked by required conditions
Publish / Build & Push RC Docker images (push) Blocked by required conditions
Scorecard / Scorecard analysis (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-cli) (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-web) (push) Waiting to run
feat(embeddings): select the local model with GITNEXUS_EMBEDDING_MODEL_ID (#3802)
* feat(embeddings): select the local model with GITNEXUS_EMBEDDING_MODEL_ID

The in-process embedder always loaded Snowflake/snowflake-arctic-embed-xs.
GITNEXUS_EMBEDDING_MODEL_ID now names another transformers.js model, and a
custom model takes its vector width from GITNEXUS_EMBEDDING_DIMS, the value
the vector column is already created with.

- A custom model joins the embedding content hash, so switching models
  re-embeds every node instead of reusing vectors from the previous model.
  Default-model hashes are unchanged.
- A custom model whose vectors have another width stops the run on the first
  sub-batch with the value to set, printed without a stack dump.
- Unset, every path behaves as before: the default model keeps 384
  dimensions and no width check, whatever GITNEXUS_EMBEDDING_DIMS says.

Refs #628

* fix(embeddings): document safe model switches

Require forced embedding generation when switching local models:
unchanged source can otherwise retain vectors from the old model.
Verify replacement and reuse through real analysis and LadybugDB.

Refs #3802

* test(embeddings): isolate model config cases

Preserve inherited model IDs and verify one error message with no
stack output. Correct the MCP comment for custom local dimensions.

Refs #3802

---------

Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com>
2026-11-03 12:14:49 +00:00
..
languages docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
optimize fix(taint): avoid false positives for guarded Git arguments (#3703) 2026-10-24 15:37:26 +01:00
plans feat: add the test scenario map and a Vitest 5 mutation runner (#3686) 2026-10-27 16:46:58 +00:00
cli-reference.md feat(embeddings): select the local model with GITNEXUS_EMBEDDING_MODEL_ID (#3802) 2026-11-03 12:14:49 +00:00
deployment.md feat(web): resolve a root-relative GITNEXUS_BACKEND_URL against the page origin (#3640) 2026-10-24 08:45:24 +01:00
editor-setup.md feat(opencode): ship hooks as auto-loaded global plugin for full support (#3619) 2026-10-28 13:45:08 +00:00
mcp-reference.md feat(taint): add AdonisJS request and Lucid models (#3727) 2026-11-02 11:04:56 +00:00
wiki-generation.md fix(wiki): configure limits and retry truncated pages (#3775) 2026-10-31 13:24:37 +00:00