Gemini Embedding 2
Gemini Embedding 2 is Google's first natively multimodal embedding model, mapping text, images, video, audio, and documents into a single unified embedding space with support for interleaved multi-modal inputs and over 100 languages.
import { embed } from 'ai';
const result = await embed({ model: 'google/gemini-embedding-2', value: 'Sunny day at the beach',})