Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ A single trailing semicolon is ignored (falls back to single-query mode). The `-
| `minilm` | all-MiniLM-L6-v2 | 384 | ~23 MB | Apache-2.0 | Fastest, good for quick iteration |
| `jina-small` | jina-embeddings-v2-small-en | 512 | ~33 MB | Apache-2.0 | Better quality, still small |
| `jina-base` | jina-embeddings-v2-base-en | 768 | ~137 MB | Apache-2.0 | High quality, 8192 token context |
| `jina-code` | jina-embeddings-v2-base-code | 768 | ~137 MB | Apache-2.0 | Best for code search, trained on code+text (requires HF token) |
| `jina-code` | jina-embeddings-v2-base-code | 768 | ~137 MB | Apache-2.0 | Best for code search, trained on code+text |
| `nomic` | nomic-embed-text-v1 | 768 | ~137 MB | Apache-2.0 | Good quality, 8192 context |
| `nomic-v1.5` (default) | nomic-embed-text-v1.5 | 768 | ~137 MB | Apache-2.0 | **Improved nomic, Matryoshka dimensions** |
| `bge-large` | bge-large-en-v1.5 | 1024 | ~335 MB | MIT | Best general retrieval, top MTEB scores |
Expand Down
2 changes: 1 addition & 1 deletion src/domain/search/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const MODELS: Record<string, ModelConfig> = {
quantized: false,
},
'jina-code': {
name: 'Xenova/jina-embeddings-v2-base-code',
name: 'jinaai/jina-embeddings-v2-base-code',
dim: 768,
contextWindow: 8192,
desc: 'Code-aware (~137MB). Trained on code+text, best for code search.',
Expand Down
4 changes: 4 additions & 0 deletions tests/search/embedding-strategy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ describe('MODELS contextWindow', () => {
expect(config.contextWindow, `${key} missing contextWindow`).toBeGreaterThan(0);
}
});

test('jina-code points to the published code embedding model', () => {
expect(MODELS['jina-code'].name).toBe('jinaai/jina-embeddings-v2-base-code');
});
});

describe('buildEmbeddings with structured strategy', () => {
Expand Down
Loading