embedding

Encode text and images into vector representations for retrieval tasks.

3|2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/zilliztech/milvus-marketplace --skill embedding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: embedding
Source: https://github.com/zilliztech/milvus-marketplace/tree/main/plugins/core/skills/embedding
Command: npx skills add https://github.com/zilliztech/milvus-marketplace --skill embedding

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers convert both text and images into high-quality vector embeddings for fast similarity search, clustering, and cross-modal retrieval across platforms.

Core Features & Use Cases

  • Text and image vectorization: Generate embeddings for documents, prompts, and media to power search and analysis.
  • Multi-model support: Switch between models like SentenceTransformer, OpenAI embeddings, and CLIP-based image embeddings.
  • Use Case: Build a semantic search system that indexes product descriptions and product images into a single vector space for cross-modal retrieval.

Quick Start

Install dependencies and run a quick encoding of sample texts and an image:

  • pip install sentence-transformers transformers torch
  • python -c "from sentence_transformers import SentenceTransformer; m = SentenceTransformer('clip-ViT-B-32'); vecs = m.encode(['hello']); print(len(vecs[0]))"

Frequently Asked Questions about embedding

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

FAQPage Schema
How do I convert text and images into vector embeddings?

Vector embeddings convert text and images into numerical representations that enable similarity search and retrieval. Use SentenceTransformer or CLIP models with Python libraries like sentence-transformers and torch to encode documents, prompts, and media into dense vectors for semantic search and clustering.

What models can I use for text and image embeddings?

Multiple embedding models are supported including SentenceTransformer for text, CLIP-based models for images, and OpenAI embeddings for API-based workflows. Model selection depends on your accuracy requirements, latency constraints, and whether you prefer local inference or cloud endpoints.

Can I build cross-modal search across text and images with a single vector space?

Yes, cross-modal retrieval indexes both product descriptions and images into a unified vector space using multimodal models like CLIP. This enables semantic search queries that match relevant results across both text and image modalities simultaneously.

What Python libraries and dependencies do I need for embeddings?

Core dependencies include sentence-transformers, transformers, and torch. These libraries provide pre-trained embedding models and the computational framework for encoding text and images into vectors locally without external API calls.

When should I use local embedding models versus API-based embeddings?

Local models with sentence-transformers and torch offer privacy, no rate limits, and offline capability but require GPU resources. API-based embeddings trade infrastructure overhead for managed scaling, but depend on external service availability and incur usage costs.