Deprecation model
Google lists May 14, 2028 as the earliest shutdown date for gemini-embedding-001 on the Gemini API. The replacement is gemini-embedding-2, which requires re-embedding your data.
What changes
The deprecations page lists gemini-embedding-001 with a shutdown date of May 14, 2028 and recommends gemini-embedding-2. The page says its dates are the earliest possible. Google's embeddings guide says the two models' embedding spaces are incompatible, so upgrading means re-embedding all existing data.
Deprecation: Still works; removal is announced.
What to do
Re-embed the whole corpus with gemini-embedding-2 into a new index and cut over at once. Replace the task_type parameter, which gemini-embedding-2 doesn't support, with task instructions in the prompt. Check how multiple inputs are aggregated and how truncated dimensions are normalized.
Strings to search for
gemini-embedding-001