Fix jina-code model alias#1026
Conversation
|
I have read the CLA Document and I hereby sign the CLA Test seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
Greptile SummaryThis PR fixes a broken model alias by pointing Confidence Score: 4/5Safe to merge; the fix is minimal and well-tested with no logic changes beyond the model alias string. Only P2-level observation (sibling jina aliases still use Xenova/ prefix), no blocking issues. Change is a one-liner with a regression test and a matching README cleanup. src/domain/search/models.ts — verify Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["User selects model: 'jina-code'"] --> B["getModelConfig('jina-code')"]
B --> C["MODELS['jina-code'].name"]
C -->|"Before PR"| D["Xenova/jina-embeddings-v2-base-code\n(stale mirror, required HF token)"]
C -->|"After PR"| E["jinaai/jina-embeddings-v2-base-code\n(official namespace, public)"]
E --> F["loadModel → @huggingface/transformers pipeline"]
D --> G["❌ 401 Unauthorized / model not found"]
F --> H["✅ Embeddings generated"]
|
Fixes #1025.
Summary
jina-codeatjinaai/jina-embeddings-v2-base-code, which exists on Hugging Face.Verification
npm test -- tests/search/embedding-strategy.test.tsnpm run typechecknpm run lint(passes with existing warnings)