gemini-embedding-2

Generate 3072-dim multimodal embeddings for text, images, video, audio, and PDFs.

27|5|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Fandry96/k3-agentic-skills --skill gemini-embedding-2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-embedding-2
Source: https://github.com/Fandry96/k3-agentic-skills/tree/main/skills/gemini-embedding-2
Command: npx skills add https://github.com/Fandry96/k3-agentic-skills --skill gemini-embedding-2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gemini Embedding 2 provides a unified 3072-dim vector space to represent text, images, video, audio, and PDFs for efficient cross-modal representation and retrieval.

Core Features & Use Cases

  • Natively multimodal embeddings with a single transformer backbone for text, images, video, audio, and PDFs
  • Supports MRL truncation (128-3072 dims) for flexible memory and index sizing
  • Ideal for semantic search, RAG pipelines, clustering, classification, and cross-modal retrieval
  • Works with vector databases and narrative memory for agentic retrieval and memory

Quick Start

Invoke gemini-embedding-2 to generate embeddings for a multimodal dataset and integrate them into your semantic search workflow.

Frequently Asked Questions about gemini-embedding-2

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

FAQPage Schema
How do I embed text, images, and audio into a single vector space for cross-modal retrieval?

To embed multimodal data for cross-modal retrieval, you need a natively multimodal embedding model that processes text, images, audio, and video through a single transformer backbone into a unified vector space. This ensures accurate similarity computations across different content types.

What is MRL truncation and does it help with vector database memory limits?

MRL truncation allows you to dynamically reduce embedding dimensions from 3072 down to 128. This flexibility helps optimize memory usage and index sizing in your vector database without completely losing the semantic representation needed for similarity search.

Can I use multimodal embeddings for RAG pipelines and semantic search?

Yes, you can use multimodal embeddings for RAG pipelines and semantic search by generating unified vector representations of your diverse data. These embeddings integrate seamlessly into vector databases to provide fast and accurate retrieval for agentic workflows.

Do I need separate models to generate embeddings for PDFs and video?

No, you do not need separate models to generate embeddings for PDFs and video. A single-transformer, natively multimodal embedding model can process text, images, video, audio, and PDFs directly into the same 3072-dim vector space.

How do I calculate cosine similarity across text and image embeddings?

To calculate cosine similarity across text and image embeddings, both modalities must be mapped into a unified 3072-dim vector space by a single multimodal model. This shared space enables direct and accurate cross-modal similarity computations.

When should I reduce embedding dimensions for clustering and classification?

You should reduce embedding dimensions for clustering and classification when you need to optimize memory usage or speed up index sizing. Applying MRL truncation scales down the 3072-dim vectors to as low as 128 dimensions while maintaining functional semantic relationships.