
What happened
AI.EMBED converts product names and descriptions into embedding vectors, then cosine similarity ranks the top 5 similar products for a target item such as P001.
Why it matters
The whole similar-product lookup can run as SQL batch queries inside BigQuery, so small e-commerce operators can offer meaning-based recommendations without dedicated engineering staff.
Summaries like this, every morning.
By signing up you agree to the Terms of Service and Privacy Policy.
AI.EMBED was a 2024 addition to BigQuery's set of ML SQL functions, and the case builds around a concrete gap: small e-commerce sites typically cannot afford hand-setting related products across hundreds to thousands of SKUs. Rather than presenting vector search as a research topic, it walks through a working pipeline — create a product master table, generate embeddings into a separate table with ML.GENERATE_EMBEDDING using the text-embedding-004 endpoint, then rank candidates by cosine similarity.
The explanation stresses why keyword matching is not enough: "100% cotton white T-shirt" and "cotton white cut-and-sew" differ in wording but land near each other in vector space, so similar products surface even when search terms do not overlap. The cosine scores range from -1 to 1, with values closer to 1 meaning greater semantic similarity, and the query returns the top 5 with a rounded score.
The final section extends the idea to GA4's BigQuery export, joining recent product-page view sessions with the similarity table to produce recommendation candidates for marketing and newsletter content. The suggested starting point is modest: validate behavior on a sample of 10 to 20 products, then tune what text goes into the content field and schedule regular embedding refreshes so new products are covered.
Pick your industry and the AI tools you use, and get news related to your work every day.
By signing up you agree to the Terms of Service and Privacy Policy.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
altspark Inc., a Pittsburgh-based startup, launched a hosted platform that connects apps, databases and docume…
ASUS announced the XA P8N-E2X at NVIDIA GTC Washington, D.C

Ruining He and co-authors at Google Research proposed RealFormer, which adds residual connections to attention…

Ben's Bites compares today's AI adoption to learning to Google in 1998 — it took about ten years for search ha…

In McKinsey's August 2026 survey, 40% of respondents at organizations with more than $1 billion in annual reve…

Cisco's Outshift released open-source tools ACCORD, CONCORD, SCOPE, and MAS-Lab
