/vibe:multimodal-rag-expertfrom vibe
Guides building multimodal RAG pipelines over images+text using ColPali, DSE, jina-embeddings-v4, and voyage-multimodal-3. Covers vision-native retrieval, late-interaction scoring, and PDF chunking.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in multimodal RAG. The dirty secret of "PDF RAG" is that classical pipelines (OCR → chunk → embed) lose massive amounts of signal: tables collapse into garbled text, figures vanish, layout cues disappear, formulas turn into nonsense. Modern multimodal embedders ingest the page image directly, preserving everything humans see. This is the right architecture for visually-rich corpora in 2025-2026.
Three families of multimodal RAG:
Within vision-native, two scoring modes:
| Model | Modality | Architecture | Notes |
|---|---|---|---|
| ColPali / ColQwen2 / ColSmolVLM | Page image | Multi-vector late interaction (PaliGemma / Qwen2-VL / SmolVLM backbone) | Strong on visually rich PDFs; ViDoRe leader |
| jina-embeddings-v4 | Text + image | Qwen2.5-VL-3B; supports single-vec AND multi-vec modes; 32K context | 84.11 ViDoRe single-vec, 90.17 multi-vec; open weights |
| voyage-multimodal-3 | Text + image | Single-vector | API; competitive with ColPali on ViDoRe |
| jina-clip-v2 | Text + image | CLIP-style dual encoder, multilingual | Good general-purpose |
| nomic-embed-vision-v1.5 | Text + image | Open weights, lightweight | Good for cost-sensitive |
| DSE (Document Screenshot Embedding) | Page image | Single-vec (early baseline) | Faiss-friendly |
from colpali_engine.models import ColPali, ColPaliProcessor
from PIL import Image
import torch
model = ColPali.from_pretrained("vidore/colpali-v1.3", torch_dtype=torch.bfloat16, device_map="cuda")
proc = ColPaliProcessor.from_pretrained("vidore/colpali-v1.3")
# Index: page images -> multi-vector embeddings
page_imgs = [Image.open(p) for p in page_paths]
batch = proc.process_images(page_imgs).to(model.device)
with torch.no_grad():
page_embs = model(**batch) # (N_pages, N_patches, dim)
# Query: text -> multi-vector embedding
qbatch = proc.process_queries(["What was Q3 revenue?"]).to(model.device)
with torch.no_grad():
q_emb = model(**qbatch)
# MaxSim scoring
scores = proc.score_multi_vector(q_emb, page_embs) # (1, N_pages)
top = scores[0].topk(5).indices.tolist()
import requests
r = requests.post("https://api.jina.ai/v1/embeddings", json={
"model": "jina-embeddings-v4",
"task": "retrieval.passage", # or retrieval.query
"input": [{"image": "https://.../page1.png"}, {"text": "table of revenue"}]
}, headers={"Authorization": f"Bearer {JINA_KEY}"})
import voyageai
vo = voyageai.Client()
docs_emb = vo.multimodal_embed(
inputs=[[Image.open(p)] for p in page_paths],
model="voyage-multimodal-3",
input_type="document",
).embeddings
q_emb = vo.multimodal_embed(
inputs=[["What was Q3 revenue?"]],
model="voyage-multimodal-3",
input_type="query",
).embeddings[0]
import fitz # PyMuPDF
doc = fitz.open("report.pdf")
for i, page in enumerate(doc):
pix = page.get_pixmap(dpi=200) # 150-200 dpi sweet spot; >300 wastes tokens
pix.save(f"page_{i:04d}.png")
When you do extract text, prefer late chunking with a long-context embedder (jina-embeddings-v3/v4) over naive split-then-embed — preserves cross-chunk context. See the late-chunking-expert mode.
Retrieved page images go to a VLM. With Anthropic / OpenAI / Google APIs:
# Anthropic
client.messages.create(
model="claude-sonnet-4-5",
max_tokens=1024,
messages=[{"role": "user", "content": [
{"type": "image", "source": {"type": "base64", "media_type": "image/png", "data": b64(p)}}
for p in top_pages
] + [{"type": "text", "text": user_question}]}],
)
Use vision-native multimodal RAG when:
Stick with text RAG when:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
multimodal-rag, vision-embedding, colpali, pdf-rag, document-retrieval
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job