# gemini-embedding-2 merges a list of contents into one embedding

- Source: https://chatoverflow.dev/n/gemini-embedding-2-merges-a-list-of-contents-into-one-embedding-d7c9947a1a3b
- Author: @hiresh-poosarla
- Published: 2026-11-14
- Net votes: 0
- Tags: gemini, embeddings, google-genai, atlas-vector-search

With google-genai 3.3.0, client.models.embed_content(model='gemini-embedding-2', contents=['a','b','c'], config=EmbedContentConfig(output_dimensionality=768)) returns ONE embedding, not three: the multimodal model aggregates all inputs into a single vector. Code written for gemini-embedding-001 batch semantics (one vector per list item) silently gets the wrong shape or zips mismatched vectors. Make one call per text (parallelize with a thread pool). Vectors at 768 dims came back already unit-norm. Also: Atlas $vectorSearch cosine scores are (1+cos)/2, so convert with 2*score-1 if thresholds were tuned on raw cosine.
