
BigQuery AI & ML
FreeLeverage BigQuery's AI for advanced data analytics.
Free · Opens the source repo
What BigQuery AI & ML does
BigQuery AI & ML skill integrates Google's BigQuery with Vertex AI, enabling users to perform sophisticated machine learning tasks directly within SQL queries. This skill is particularly useful for data analysts and data scientists who need to execute complex analytics without leaving the BigQuery environment. The built-in functions allow for a wide range of operations, including time-series forecasting, anomaly detection, and semantic searches, making it a versatile tool for various data-driven tasks.
The skill provides access to a suite of functions such as AI.FORECAST for predicting future values based on historical data, AI.DETECT_ANOMALIES for identifying outliers in datasets, and AI.CLASSIFY for categorizing text data. Each function is designed to simplify the implementation of machine learning models, allowing users to focus on analysis rather than the intricacies of model training and deployment. This integration ensures that users can harness the power of generative AI and machine learning directly within their SQL workflows.
Whether you are looking to summarize large datasets, evaluate machine learning models, or perform semantic searches, the BigQuery AI & ML skill offers a comprehensive set of tools to enhance your data analytics capabilities. This skill is ideal for organizations that rely heavily on data insights and wish to streamline their analytics processes using AI-driven methods. By utilizing these functions, users can gain deeper insights and make more informed decisions based on their data.
Overall, the BigQuery AI & ML skill is a powerful addition for anyone working with data in BigQuery, providing the necessary tools to implement advanced analytics and machine learning techniques efficiently.
When to use it
Use this skill when you need to perform advanced data analytics tasks, such as forecasting or anomaly detection, directly in BigQuery.
When not to use it
This skill is not suitable for general dataset management tasks in BigQuery, such as creating or deleting tables.
What you can build with it
Time-Series Forecasting
Utilize the `AI.FORECAST` function to predict future trends based on historical data.
Anomaly Detection
Apply the `AI.DETECT_ANOMALIES` function to identify outliers in your datasets seamlessly.
Text Classification
Use the `AI.CLASSIFY` function to categorize and analyze text data effectively.
How to install BigQuery AI & ML
View source1. Install with the skills CLI
npx skills add google/skills/bigquery-ai-ml --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by googleBigQuery AI & ML
BigQuery integrates with Vertex AI to provide powerful machine learning and
generative AI capabilities directly within SQL queries using built-in functions
like AI.FORECAST, AI.KEY_DRIVERS, AI.DETECT_ANOMALIES, and AI.GENERATE.
Reference Directory
-
Functions Reference:
- AI.AGG: ai_agg.md - Multi-row semantic aggregation and summarization.
- AI.CLASSIFY: ai_classify.md - Classify text.
- AI.DETECT_ANOMALIES: ai_detect_anomalies.md - Detect anomalies.
- AI.EVALUATE: ai_evaluate.md - Evaluate models.
- AI.FORECAST: ai_forecast.md - Time-series forecasting.
- AI.GENERATE: ai_generate.md - Generate text using LLMs.
- AI.GENERATE_EMBEDDING: ai_generate_embedding.md - Generate embeddings.
- AI.GENERATE_TABLE: ai_generate_table.md - Table-valued AI generation.
- AI.IF: ai_if.md - Evaluate semantic conditions.
- AI.KEY_DRIVERS: ai_key_drivers.md - Identifies key drivers, this is a TVF.
- AI.SCORE: ai_score.md - Score data.
- AI.SEARCH: ai_search.md - Semantic search.
- AI.SIMILARITY: ai_similarity.md - Semantic similarity.
- Remote Models: remote_models.md - Working with remote models (Vertex AI).
- CONTRIBUTION_ANALYSIS:
ml_contribution_analysis.md
- Finds contributing factors, key drivers of change. Requires creating a MODEL entity.
- VECTOR_SEARCH: vector_search.md - Vector search best practices.
Related Skills
- BigQuery Basics Skill: SKILL.md file for core BigQuery concepts, resource management, CLI, and client libraries.
Frequently asked questions about BigQuery AI & ML
Similar skills
scvi-tools Deep Learning
Advanced tools for single-cell genomic analysis.
Arize Experiment
Evaluate and compare model performance with ease.
DEFT Mining and Embedding
Automate image mining for machine learning workflows.
TimesFM Forecasting
Zero-shot time series forecasting with Google’s TimesFM.
SHAP
Audit and explain machine learning predictions with SHAP.
scvi-tools
Advanced tools for single-cell omics analysis.
