﻿# How should BigQuery teams adopt built-in EmbeddingGemma without mixing vector spaces?

BigQuery made built-in EmbeddingGemma available in AI.EMBED and AI.SIMILARITY. Test relevance and manage the migration of existing vector columns.

Author: Retrivium editorial team
Updated: 2026-11-25
Canonical URL: https://retrivium.ai/journal/daily-20261125-models-bigquery-embeddinggemma-version-boundary/
Language: en

The November 24 Google Cloud release notes designate the built-in text model embeddinggemma-300m as generally available in BigQuery’s AI.EMBED and AI.SIMILARITY functions. This gives teams an SQL path to compute embeddings or compare content. A migration for a search application still needs a consistent vector space, a relevance test and a plan for updating stored data.

## Choose the interface by output

Use the function reference to distinguish materializing embeddings from evaluating pairs. Persistent vectors can support repeated retrieval and inspection. A pairwise score can help examine a narrow hypothesis, such as whether two product descriptions are related. Keep that evaluation separate from measuring top-k retrieval, which depends on the rest of the corpus.

## Record the generation contract

Store the model identifier along with preprocessing, truncation, input role and any requested options your path uses. Match query encoding to the document encoding expected by the model. Similarity scores are meaningful only for the intended comparison. Matching vector lengths alone provide no evidence that vectors from different routes share a semantic space.

## Create a relevance fixture from actual queries

Sample common searches, queries with rare terms and queries where several documents look similar. Label acceptable and clearly irrelevant documents before testing the new path. Compare top-k retrieval and record cases that the old system handled better. Run separate slices when your application mixes languages or different text lengths.

## Backfill independently and track coverage

Create a new vector column or table for the migration. Record which source revision produced each vector and test that changed rows are picked up during the backfill. Validate counts for deleted, newly added and modified documents. During comparison, keep queries for each index on its own corresponding generation path.

## Switch once the corpus and queries agree

Use relevance results and a row coverage check as the acceptance evidence. Move query generation and index selection together. Keep the previous route available until measurement has covered live workload patterns. The managed function simplifies execution inside BigQuery. Operators still decide which generation and retrieval settings belong together.

## Sources

- [Google Cloud November 24 release notes](https://docs.cloud.google.com/bigquery/docs/release-notes#November_24_2026)
- [BigQuery AI.EMBED reference](https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-syntax-ai-embed)
- [BigQuery AI.SIMILARITY reference](https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-syntax-ai-similarity)

## Related reading

- [EmbeddingGemma retrieval: query and document prompts must stay distinct](/journal/embeddinggemma-query-document-prompts/)
- [Matryoshka embeddings: truncate and normalize both sides consistently](/journal/matryoshka-truncation-query-index-contract/)
