clip

Compute image and text embeddings for zero-shot classification and retrieval.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/eddielueng/hermes-agent-zh --skill clip-eddielueng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clip
Source: https://github.com/eddielueng/hermes-agent-zh/tree/main/optional-skills/mlops/clip
Command: npx skills add https://github.com/eddielueng/hermes-agent-zh --skill clip-eddielueng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

CLIP solves the problem of figuring out what an image is about without training a custom model, by aligning images and natural-language text in a shared embedding space.

Core Features & Use Cases

  • Zero-shot image classification: classify images into arbitrary text labels without fine-tuning.
  • Image-text matching & retrieval: find the most relevant images for a text query (and vice versa) using cosine similarity.
  • Cross-modal embeddings for downstream pipelines: generate reusable image/text embeddings for tasks like semantic search, deduplication, and moderation.

Example use case: You have a folder of product photos and want to tag them by concepts like "red shirt" or "winter clothing" instantly, then search for “photos with a sunset” across the collection.

Quick Start

Use the clip skill to classify an image by comparing its embedding to a list of candidate text labels.

Frequently Asked Questions about clip

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I classify images using zero-shot vision-language models without training?

Zero-shot image classification compares an image embedding against candidate text labels using cosine similarity, requiring no fine-tuning. You provide a list of natural-language descriptions, and the model calculates image-text similarity to find the best match instantly.

Can I perform image retrieval with text queries using cross-modal embeddings?

Image retrieval with text queries uses cross-modal embeddings to align images and natural language in a shared space. By computing cosine similarity between text and image embeddings, you can find the most relevant photos for a semantic search query.

What is the best way to tag and categorize product photos for content moderation?

Content moderation and product tagging use zero-shot classification by comparing image embeddings to descriptive text labels. This instantly categorizes images by concepts like apparel type or attributes without needing a custom-trained model.

Do I need a specific model architecture for zero-shot image-text matching?

Zero-shot image-text matching requires a CLIP-compatible model containing both vision and text encoders. These encoders process images and text into aligned embeddings, which are then compared using cosine similarity for matching tasks.

How does cross-modal similarity work for semantic search in multimodal pipelines?

Cross-modal similarity for semantic search works by generating reusable image and text embeddings, then computing cosine similarity between them. This aligns both modalities in a shared space, allowing text queries to retrieve relevant images directly.

What are the limitations of using cosine similarity for zero-shot classification?

Zero-shot classification using cosine similarity is limited by the quality of candidate text labels and the model's pretrained knowledge. It does not learn new concepts beyond its training and requires carefully chosen natural-language descriptions for accurate matching.