{"slug": "pinecone-integrated-embedding-now-supports-google-s-gemini-embedding-2", "title": "Pinecone integrated embedding now supports Google's Gemini Embedding 2", "summary": "Pinecone added Google's Gemini Embedding 2 to its integrated embedding feature on the Documents API, letting teams run semantic search without building or maintaining an embedding pipeline. Setting gemini-embedding-2 on a text field makes Pinecone embed every write and query for that field, served from Google Vertex AI with retries, no Google Cloud account or API key, and tokens billed on the Pinecone invoice at Google's list price; through December 31, 2026, the Builder plan gets 20M Gemini Embedding 2 tokens a month, twice its included amount. Gemini Embedding 2 requires a Builder plan or above, and Pinecone automatically adds the model's document-or-query instruction to each input and supports task types including classification, clustering, sentence_similarity, question_answering, fact_verification and code_retrieval_query.", "body_md": "Pinecone [integrated embedding](https://www.pinecone.io/blog/docs-api-integrated-embedding/) on the [Documents API](https://docs.pinecone.io/guides/get-started/documents-api) now supports Google's Gemini Embedding 2, alongside the Pinecone-hosted models it launched with. Gemini Embedding 2 is [Google's newest Gemini embedding model](https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-embedding-2/). Teams can now run semantic search on it without building and maintaining an embedding pipeline.\n\nSet Gemini Embedding 2 on a text field in a Documents API index and send plain text. Pinecone embeds every write and every query for that field with that model. There's no Google Cloud account or key to manage, and the tokens appear on your Pinecone invoice at Google's list price.\n\n**Through December 31, 2026, the Builder plan gets twice its included tokens for Gemini Embedding 2: 20M a month.**\n\n## Let Pinecone make the embedding calls\n\nUsing a Google embedding model means calling Google's API on every write and every query. Development teams manage the Google Cloud account, API key, and rate limits, and pay Google separately from Pinecone. Integrated embedding moves that work into Pinecone:\n\n- Send plain text instead of calling an embedding provider first. Pinecone embeds the query and runs the search in one call.\n- Pinecone writes each document's text and its embedding together, so full-text and semantic search always see the same version of each document.\n- Pinecone serves Gemini Embedding 2 from Google Vertex AI, and retries failed calls, so teams don't have to build their own retry logic.\n- There's no Google API key to manage, and no separate bill for embedding. Tokens are billed on the Pinecone invoice at Google's list price.\n\n## How to use Gemini Embedding 2 in Pinecone\n\nSet the model in the `embed` setting of a text field when creating a Documents API index. The Python example below embeds the `body` field with `gemini-embedding-2` at 1,536 dimensions and turns on full-text search for `body`, so the same field serves semantic and keyword search.\n\n**Note:** Gemini Embedding 2 needs a Builder plan or above.\n\n``` python\nfrom pinecone import Pinecone\n\npc = Pinecone(api_key=\"YOUR_API_KEY\")\n\npc.indexes.create(\n    name=\"support-articles\",\n    schema={\n        \"fields\": {\n            \"body\": {\n                \"type\": \"string\",\n                \"full_text_search\": {},\n                \"embed\": {\n                    \"model\": \"gemini-embedding-2\",\n                    \"dimension\": 1536,\n                },\n            }\n        }\n    },\n)\n\nindex = pc.index(\"support-articles\")\n\nindex.documents.upsert(\n    namespace=\"articles\",\n    documents=[\n        {\"_id\": \"kb-205\", \"body\": \"Refunds take five business days.\"},\n    ],\n)\n```\n\nTo search, send the query as text. This search also tells Gemini Embedding 2 to embed the query for question answering:\n\n```\nresults = index.documents.search(\n    namespace=\"articles\",\n    top_k=5,\n    score_by=[\n        {\n            \"type\": \"embed\",\n            \"fields\": [\"body\"],\n            \"query\": \"how long do refunds take\",\n            \"parameters\": {\"task_type\": \"question_answering\"}\n        }\n    ],\n    include_fields=[\"body\"],\n)\n```\n\nIf you leave out the `dimension`, the field uses the model's full size. Any size the model supports works, so you can keep the dimensions your existing indexes already use.\n\nGemini Embedding 2 expects a short instruction at the start of each input that says whether the text is a document or a query. Pinecone adds the right instruction to every write and every query, so you don't need model-specific prompts.\n\nBy default, Pinecone embeds Gemini Embedding 2 fields for general search. Set `task_type` on the field for `classification`, `clustering`, or `sentence_similarity`. A single search can also set `task_type` to `question_answering`, `fact_verification`, or `code_retrieval_query` for that query. See the [full list of task types Pinecone supports](https://docs.pinecone.io/models/gemini-embedding-2#task-types).\n\nGemini Embedding 2 supports text in more than 100 languages. The model processes text globally, which means Google can handle each request in any of its regions, with no specific region guaranteed.\n\n## Availability and limits\n\n- Gemini Embedding 2 works on serverless Documents API indexes. BYOC, pod-based, and Records API indexes aren't supported.\n- The console and Python SDK 10.3.0 support Gemini Embedding 2. Support in the Node.js and Go SDKs is coming soon.\n- Existing vector indexes can be converted to Documents API indexes without re-embedding. Adding integrated embedding to a converted index is coming soon. Until then, use Gemini Embedding 2 on new Documents API indexes and send them your text.\n- Integrated embedding works on text fields today, not on multimodal fields. So, while Gemini Embedding 2 can also embed images, video, and audio, it is only offered as a text model today. Multimodal support is planned for a later release.\n- Builder plan includes 10M tokens a month for Gemini Embedding 2, and **twice that through December 31, 2026.**\n\n## Get started\n\nRead the [integrated embedding docs](https://docs.pinecone.io/guides/search/integrated-embedding) to learn how to set up Google's Gemini Embedding 2 on a Documents API index. **Through December 31, 2026, the Builder plan gets twice its included tokens for Gemini Embedding 2: 20M a month.**\n\nWas this article helpful?", "url": "https://wpnews.pro/news/pinecone-integrated-embedding-now-supports-google-s-gemini-embedding-2", "canonical_source": "https://www.pinecone.io/blog/integrated-embedding-google/", "published_at": "2026-11-12 16:00:00+00:00", "updated_at": "2026-11-13 00:21:38.203642+00:00", "lang": "en", "topics": ["ai-search", "ai-tools", "ai-infrastructure", "large-language-models"], "entities": ["Pinecone", "Google", "Gemini Embedding 2", "Google Vertex AI", "Documents API"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/pinecone-integrated-embedding-now-supports-google-s-gemini-embedding-2", "markdown": "https://wpnews.pro/news/pinecone-integrated-embedding-now-supports-google-s-gemini-embedding-2.md", "text": "https://wpnews.pro/news/pinecone-integrated-embedding-now-supports-google-s-gemini-embedding-2.txt", "jsonld": "https://wpnews.pro/news/pinecone-integrated-embedding-now-supports-google-s-gemini-embedding-2.jsonld"}}