What problem does it solve? Analysts often need machine learning and generative AI capabilities like forecasting, anomaly detection, and text classification without leaving their SQL environment or managing separate ML infrastructure. This Skill provides the syntax, constraints, and best practices for BigQuery's built-in AI and ML functions. ## Core Features & Use Cases - Time-Series Analysis: Generate forecasts with AI.FORECAST, detect anomalies with AI.DETECT_ANOMALIES, and evaluate model accuracy with AI.EVALUATE using the pre-trained TimesFM model. - Generative AI in SQL: Use AI.GENERATE, AI.GENERATE_TABLE, AI.CLASSIFY, AI.IF, and AI.SCORE to summarize, classify, filter, and rank data with Gemini models directly in queries. - Semantic Search & Embeddings: Create embeddings with AI.GENERATE_EMBEDDING and run similarity searches with VECTOR_SEARCH and AI.SEARCH. - Use Case: A data analyst wants to forecast next month's sales per store and flag unusual revenue days. The Skill guides writing AI.FORECAST with id_cols for per-store series and AI.DETECT_ANOMALIES with a probability threshold, following mandatory syntax rules like placing TVFs in the FROM clause. ## Quick Start Ask the AI to write a BigQuery SQL query that forecasts daily sales for the next 30 days using AI.FORECAST on your sales table.