feat(jobs): embed.text worker (Ollama → vector(1024))

Pads nomic-embed-text's 768 dims to 1024 zeros so a later 1024-dim model
swap is a re-embed, not a migration (per master spec).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
root
2026-06-01 03:43:57 +10:00
parent 5799ea663e
commit 37b7753360
3 changed files with 84 additions and 1 deletions

View File

@@ -2,8 +2,9 @@ import * as queue from './queue.js';
import * as echo from './workers/echo.js';
import * as url from './workers/url.js';
import * as blob from './workers/blob.js';
import * as embed from './workers/embed.js';
const WORKERS = [echo, url, blob];
const WORKERS = [echo, url, blob, embed];
export async function registerWorkers() {
for (const w of WORKERS) {