Commit 52ccf19
committed
docs(router): recommend nomic-embed-text-v1.5 over Longformer
llama.cpp doesn't support Longformer's sliding-window + global
attention pattern — confirmed by grepping convert_hf_to_gguf.py for
LongformerModel (not present; supported encoder archs are Bert,
DistilBert, Roberta, XLMRoberta, NomicBert, JinaBert, ModernBert,
NeoBERT, EuroBert).
For routing the dataset schema is encoder-agnostic; we just need
SOME long-context sentence encoder. nomic-embed-text-v1.5
(NomicBert arch, 8192 native context, GGUF available, already
in gallery/index.yaml) fits the bill and runs on the existing
llama-cpp embedding path.
Updates the model-editor description for router.embedding_model
to surface nomic-embed-text-v1.5 as the default suggestion, with
modernbert-embed-base / jina-embeddings-v3 as alternatives.
Also corrects an inaccurate comment in routing_data.go that
conflated Longformer's context length (4096 tokens) with
embedding dimensionality (768) when justifying the 8MB scanner
buffer.
Assisted-by: claude-code:claude-opus-4-7 [Edit] [Bash]
Signed-off-by: Richard Palethorpe <io@richiejp.com>1 parent a73459b commit 52ccf19
2 files changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| |||
0 commit comments