TECHNOLOGY

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

In this article
THE QUICK TAKE

Record the model and input configuration for each vector set and switch documents and queries together after relevance checks.

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

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles