Vision Embedding & Tagging API (retired sb-vision)
The sb-vision crate and the sb-axum vision feature were removed (SBAI-LAUNCH,
2026-11-20). They held CLIP (512-dim) image embeddings, RAM tagging, BLIP/ViT
captioning and Doctr OCR, plus the POST /vision/analyze, /vision/ocr and
/vision/segment routes in crates/ai/crates/sb-axum. No client called those
routes, and no client declared a sb-vision dependency.
The owner decision is two models:
- EmbeddingGemma 2 (768-dim, Matryoshka) is the only embedder, for text and
for asset images, on every surface. See
FLEET_EMBEDDERinpackages/ai-sdk/src/embeddings/contract.ts. - Gemma 4 does deep tags, descriptions, OCR and boxes.
Where vision runs now (paths relative to studiobrain-cloud):
| Surface | Source | Path |
|---|---|---|
| SaaS | packages/cloudflare-worker/vision-worker/src/worker.ts, packages/cloudflare-worker/sb-ai-worker/src/routes.ts | /internal/vision/analyze through the GENERATION service binding |
| Asset tag queue | packages/cloudflare-worker/assets-worker/src/worker.ts | drainer calls sb-vision-worker POST /api/vision/analyze; image vectors are EmbeddingGemma 2 via Workers AI |
| Browser / desktop | packages/ai-sdk/src/asset-analysis/ | quick tags on device; deep tier uses the Gemma 4 media lane. No CLIP vectors are computed |
| Enterprise indexer | crates/sb-enterprise/src/indexer/pipeline.rs | vision_embed_via_gateway() over HTTP (MODEL_MANAGER_VISION_EMBED_URL) |
sb-vision-worker is a Cloudflare Worker, not this crate, and is still live.