GitNexus/gitnexus/test
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
..
fixtures feat(go): index Gin and Echo routes through configured aliases (#3750) 2026-11-01 21:20:00 +00:00
helpers fix(java): resolve overloads by JLS phases (#3791) 2026-11-01 11:08:00 +00:00
integration feat(embeddings): select the local model with GITNEXUS_EMBEDDING_MODEL_ID (#3802) 2026-11-03 12:14:49 +00:00
unit feat(embeddings): select the local model with GITNEXUS_EMBEDDING_MODEL_ID (#3802) 2026-11-03 12:14:49 +00:00
utils feat(storage): add configurable index storage and content retention tiers (#3060) 2026-09-12 20:31:55 +00:00