published fresh until

CLIP or SigLIP 2: contextual search in a local image folder?

Summary As of October 2026, keep CLIP as an existing baseline; for a new local image-search experiment, compare visual ranking with caption-assisted ranking. The sources establish no winner for this dataset; trial google/siglip2-base-patch16-224

Not for a shared code, audio and screenshot index with EmbeddingGemma 2, see embeddinggemma-2-local-multimodal-search

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Keep a working CLIP baseline; for a new experiment trial SigLIP 2 alongside CLIP, then test whether captions improve contextual matches before replacing the encoder.

Do first: set SigLIP text preprocessing to lowercase with padding="max_length", max_length=64, truncation=True.

Define what counts as related

Label a small fixed set of text and image queries with two separate relevant-image lists: visual similarity and contextual relevance. For example, another car may satisfy the first list while a bus stop or road satisfies the second. This is a proposed evaluation recipe, not a measured result.

1. Use the same image set, query set and top-k for both encoders. Remove the query image itself from image-query results. 2. Encode with each checkpoint's own processor. Normalize vectors for cosine ranking and keep each model's index separate. Do not reuse CLIP vectors with SigLIP queries. CLIP docs, SigLIP 2 retrieval docs. Obtain SigLIP text embeddings with model.get_text_features(inputs) after tokenization. For an image query, feed the processed image to model.get_image_features(inputs). 3. For SigLIP text, explicitly lowercase inputs and use padding="max_length", max_length=64, truncation=True. Inspect the installed processor's behavior with capitalized inputs rather than assuming defaults fix every checkpoint. The official docs specify this preprocessing; the public tokenizer report below shows why checking matters. 4. Compare direct image-vector ranking with a second ranking from short captions written once per image. For image queries, caption the query too. Start with manual captions so a captioning model is not another variable. As an experiment, combine the two ranked lists with reciprocal-rank scoring, 1/(60 + visual_rank) + 1/(60 + caption_rank); the constant is a starting choice to tune, not a vendor default. 5. Record precision at your chosen k separately for both relevance lists, plus indexing time, query latency and memory. Inspect missed examples. Keep caption assistance only if it improves contextual relevance without an unacceptable loss of visual matches.

Checkpoints, licences and limits — checked 2026-10-28

OptionWhat it is forLicence and local costText constraint
openai/clip-vit-base-patch32A fixed baseline for image/text similarity researchCLIP repository has MIT licence; local compute and storage still cost resourcesCLIP configuration has 77 text positions
google/siglip2-base-patch16-224Image-text retrieval and a candidate encoder for a new experimentGoogle model card lists Apache-2.0; measure local indexing and inference resourcesOfficial SigLIP 2 recipe lowercases and pads/truncates to 64 tokens

Sources: CLIP licence, CLIP configuration, Google model card, SigLIP preprocessing. These are named released checkpoints, not a claim that either family has no newer variant. No hosted API price or RAM minimum is established here. The CLIP card calls it a research output and asks for thorough in-domain testing even for constrained image search. CLIP model card.

When to pick which

OptionWhen it winsWhen it losesHonest pick
CLIPYou already have an evaluated CLIP index and want a controlled baselineIt fails your contextual labels, or its research-use cautions do not fit deploymentPick this if continuity beats an unmeasured switch
SigLIP 2Starting fresh and prepared to evaluate its retrieval-oriented checkpointCorrect preprocessing still misses your contextual relations; reindexing buys no measured improvementPick this if your held-out queries justify a new index
Either encoder plus captionsThe desired relation is visible in a useful scene descriptionCaptions omit the relation or indexing work is too expensivePick this if the measured gain pays for caption preparation

Caption assistance is a retrieval design, not another encoder or a guaranteed fix. The sources establish no winner between SigLIP 2 and CLIP for this dataset.

Public evidence

  • AnaghaB2026, 2026-10-23: “image-to-image results were inconsistent for others.” The author tested both encoders on a small local collection. nootxlm and PierreBrunelle suggest caption-assisted evaluation; neither reports a completed comparison there.
  • jayzuccarelli, 2026-09-28, Transformers #49139: “I can reproduce this on main.” The contributor reproduces case-sensitive tokenization through automatic loading. This is evidence to inspect preprocessing, not evidence that CLIP wins retrieval or a fix shipped in a stable release.

Recommendation by constraint

Solo experiment: trial SigLIP 2 alongside CLIP and manually caption a small evaluation set. Small team with a functioning CLIP index: keep CLIP until the same queries show a worthwhile improvement. Enterprise deployment: compare both under domain-specific acceptance criteria and review intended-use constraints; do not approve a switch on generic benchmark claims.

Prompt for your agent

Compare these two checkpoints on our fixed local image set. Keep model-specific processors and indexes separate. Score visual and contextual relevance independently, with and without manual captions. Record checkpoint revisions, installed stable library versions, latency and memory. Recommend a switch only from the measured results.

Mistakes to avoid

Treating car-to-bus relevance as identical to appearance; tuning one threshold across different encoders; feeding uppercase SigLIP text without checking tokenization; making a model choice from a handful of attractive screenshots.

Limits

No retrieval benchmark, captioner or runtime was executed here. Community evidence is one small-dataset discussion and a separate tokenizer reproduction, not two successful deployments. Caption fusion is an untested experiment for this collection; whether captions improve it remains unmeasured. No fixed stable tokenizer release or cross-model accuracy advantage is asserted.

checked 2026-10-28

Started from a post by @AnaghaB2026, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# CLIP or SigLIP 2: contextual search in a local image folder?
Summary: As of October 2026, keep CLIP as an existing baseline; for a new local image-search experiment, compare visual ranking with caption-assisted ranking. The sources establish no winner for this dataset; trial google/siglip2-base-patch16-224
Copy for agent
get the whatworks thread clip-or-siglip-2-local-contextual-image-retrieval and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread clip-or-siglip-2-local-contextual-image-retrieval
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp