Change
3884695
3884695d8a091c7361f67c91699623aea359eee5 · commit on GitHub
gcloud-blog-feed: changed (547037 bytes, HTTP 200)
raw/gcloud-blog-feed/response.xml modified
- Source
- gcloud-blog-feed
- Lines added
- +142
- Lines removed
- -149
- Stored bytes at this commit
- 547,037
- Timestamp
- observed
- Raw artifact at this commit
- raw/gcloud-blog-feed/response.xml
Recorded headers
| observed_at | 2026-11-24T09:54:29.307Z |
|---|---|
| origin_date | null |
| status | 200 |
| final URL | https://cloudblog.withgoogle.com/products/ai-machine-learning/rss/ |
| etag | null |
| last-modified | null |
| date | Tue, 24 Nov 2026 09:54:29 GMT |
| age | null |
| cache-control | public, max-age=600, s-maxage=600 |
| cf-cache-status | null |
| content-encoding | gzip |
| content-length | 140338 |
@
@@ -1,5 +1,126 @@<?xml version="1.0" encoding="utf-8"?>-
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>AI & Machine Learning</title><link>https://cloud.google.com/blog/products/a…+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>AI & Machine Learning</title><link>https://cloud.google.com/blog/products/a…+
<p><a href="https://cloud.google.com/alloydb/omni?e=48754805"><span style="text-decoration: underline; vertical-align: baseline;">AlloyDB Omni</span></a><span style="vertical-align: baseline;">, Google’s 100% PostgreSQL-compatible database that runs anywhere, now …+
<h2><strong style="vertical-align: baseline;">Built-in AI for your local environment</strong></h2>+
<p><span style="vertical-align: baseline;">AlloyDB Omni is a downloadable, run-anywhere edition of AlloyDB that easily deploys to your own infrastructure, including on-premises. AlloyDB Omni packs powerful, built-in AI, including the same ScaNN indexing technology powering Google Search.…+
<h2><strong style="vertical-align: baseline;">Connecting to Gemma 4, Qwen3.8, and other local models</strong></h2>+
<p><span style="vertical-align: baseline;">You can now connect AlloyDB Omni to local models like </span><a href="https://deepmind.google/models/gemma/gemma-4/" rel="noopener" target="_blank"><span style="text-decoration: underline; vertical-align: baseline;">Gemma 4<…+
<div class="block-image_full_width">+
+
+
+
+
+
+
+
<div class="article-module h-c-page">+
<div class="h-c-grid">+
+
+
<figure class="article-image--large+
+
+
h-c-grid__col+
h-c-grid__col--6 h-c-grid__col--offset-3+
+
+
"+
>+
+
+
+
+
<img+
src="https://storage.googleapis.com/gweb-cloudblog-publish/images/1_-_alloydb-omni-local-models.max-1000x1000.png"+
+
alt="1 - alloydb-omni-local-models">+
+
</a>+
+
<figcaption class="article-image__caption "><p data-block-key="mqr15">AlloyDB Omni calls a local model server directly from SQL — keeping prompts, data, and responses inside your environment.</p></figcaption>+
+
</figure>+
+
+
</div>+
</div>+
+
+
+
+
+
</div>+
<div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">This setup enables entirely new use cases for environments that were previously blocked from adopting agentic capabilities. If you operate an air-gapped network or have data locality requirements, you …+
<ul>+
<li aria-level="1" style="list-style-type: disc; vertical-align: baseline;">+
<p role="presentation"><strong style="vertical-align: baseline;">Keep data on-premises:</strong><span style="vertical-align: baseline;"> Because the database and the model sit in the same local environment, your data never crosses the public internet.</span></p>+
</li>+
<li aria-level="1" style="list-style-type: disc; vertical-align: baseline;">+
<p role="presentation"><strong style="vertical-align: baseline;">Reduce latency:</strong><span style="vertical-align: baseline;"> Processing inference requests locally minimizes network transit time.</span></p>+
</li>+
<li aria-level="1" style="list-style-type: disc; vertical-align: baseline;">+
<p role="presentation"><strong style="vertical-align: baseline;">Query directly via SQL:</strong><span style="vertical-align: baseline;"> Your standard database queries can invoke machine learning functions that process data locally. Like this:</span></p>+
</li>+
</ul></div>+
<div class="block-code"><dl>+
<dt>code_block</dt>+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &quot;SELECT customer_name,\r\n ai.generate(&#x27;Summarize in 1 short sentence: &#x27; || comment,\r\n model_id =&gt; &#x27;gemma4_llm&#x27;) AS summary\r\nFROM customer_feedbac…+
</dl></div>+
<div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">Next, you’ll see how to run queries like this yourself, step by step.</span></p>+
<h2><strong style="vertical-align: baseline;">Get started</strong></h2>+
<p><span style="vertical-align: baseline;">You can test this integration on your own machines today. Using a Kubernetes environment we will show you how to deploy and integrate AlloyDB Omni and a local open model.</span></p>+
<h3><strong style="vertical-align: baseline;">Step 0: Before you begin</strong></h3>+
<p><span style="vertical-align: baseline;">In this example, we will use Google Kubernetes Engine (GKE) to host the AlloyDB Omni database and local model. GKE gives us a standardized, reproducible environment but you can use the same setup on-prem or almost anywhere.</span></p>…+
<p><span style="vertical-align: baseline;">We will assume you have already setup:</span></p>+
<ol>+
<li aria-level="1" style="list-style-type: decimal; vertical-align: baseline;">+
<p role="presentation"><a href="https://docs.cloud.google.com/kubernetes-engine/docs/quickstarts/create-cluster"><span style="text-decoration: underline; vertical-align: baseline;">A GKE cluster</span></a><span style="vertical-align: baseline;">, and</span>&…+
</li>+
<li aria-level="1" style="list-style-type: decimal; vertical-align: baseline;">+
<p role="presentation"><span style="vertical-align: baseline;">Kubernetes tools </span><a href="https://kubernetes.io/docs/tasks/tools/#kubectl" rel="noopener" target="_blank"><span style="text-decoration: underline; vertical-align: baseline;">kubectl</span></a…+
</li>+
</ol>+
<h3><strong style="vertical-align: baseline;">Step 1: Deploy the AlloyDB Omni Kubernetes Operator</strong></h3>+
<p><span style="vertical-align: baseline;">We will use the </span><a href="https://docs.cloud.google.com/alloydb/omni/kubernetes/current/docs/deploy-kubernetes"><span style="text-decoration: underline; vertical-align: baseline;">AlloyDB Omni Kubernetes operator</span…+
<div class="block-code"><dl>+
<dt>code_block</dt>+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &quot;helm install \\\r\n cert-manager oci://quay.io/jetstack/charts/cert-manager \\\r\n --version v1.21.3 \\\r\n --namespace cert-manager \\\r\n --create-namespace \\\r\n --set crds.enabled=true \\\r\n --set global.…+
</dl></div>+
<div class="block-paragraph_advanced"><h3><strong style="vertical-align: baseline;">Step 2: Create your AlloyDB Omni database</strong></h3>+
<p><span style="vertical-align: baseline;">Don’t forget to enable the </span><code style="vertical-align: baseline;">googleMLExtension</code><span style="vertical-align: baseline;">.</span></p></div>+
<div class="block-code"><dl>+
<dt>code_block</dt>+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;kubectl create namespace ai-demo\r\n\r\ncat &lt;&lt; \&#x27;EOF\&#x27; | kubectl apply -f -\r\napiVersion: v1\r\nkind: Secret\r\nmetadata:\r\n name: db-pw-my-omni\r\n namespace: ai-demo\r\ntype: Opa…+
</dl></div>+
<div class="block-paragraph_advanced"><h3><strong style="vertical-align: baseline;">Step 3: Deploy your AI model</strong></h3>+
<p><span style="vertical-align: baseline;">We will use </span><a href="https://ollama.com/" rel="noopener" target="_blank"><span style="text-decoration: underline; vertical-align: baseline;">Ollama</span></a><span style="vertical-align: baseline;"> to …+
<p><span style="vertical-align: baseline;">In this example we deploy Gemma 4 from Google DeepMind. Or, you can modify this command to deploy Qwen3.8 – just change a few lines as noted in the comments.</span></p></div>+
<div class="block-code"><dl>+
<dt>code_block</dt>+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;cat &lt;&lt; \&#x27;EOF\&#x27; | kubectl apply -f -\r\napiVersion: apps/v1\r\nkind: Deployment\r\nmetadata:\r\n name: ollama\r\n namespace: ai-demo\r\nspec:\r\n replicas: 1\r\n selector:\r\n matchLa…+
</dl></div>+
<div class="block-paragraph_advanced"><h3><strong style="vertical-align: baseline;">Step 4: Register the model with AlloyDB Omni</strong></h3>+
<p><span style="vertical-align: baseline;">Connect to your database.</span></p></div>+
<div class="block-code"><dl>+
<dt>code_block</dt>+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;kubectl exec -it -n ai-demo $(kubectl get pod -n ai-demo -l alloydbomni.internal.dbadmin.goog/task-type=database -o jsonpath=\&#x27;{.items[0].metadata.name}\&#x27;) -c database -- env PGPASSWORD=&quot;Ve…+
</dl></div>+
<div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">Note: If you receive a connection error, you might need to wait a moment for your database to provision.</span></p>+
<p><span style="vertical-align: baseline;">Now you should be connected to your AlloyDB Omni database with the </span><code style="vertical-align: baseline;">psql</code><span style="vertical-align: baseline;"> client. Next, run the following SQL script to register …+
<div class="block-code"><dl>+
<dt>code_block</dt>+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &quot;CREATE EXTENSION IF NOT EXISTS google_ml_integration;\r\nALTER SYSTEM SET google_ml_integration.request_timeout_in_seconds = 600;\r\nSELECT pg_reload_conf();\r\nCREATE OR REPLACE FUNCTION google_ml.ollama_llm_input_t…+
</dl></div>+
<div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">Note: If you receive a </span><code style="vertical-align: baseline;">Resource not found</code><span style="vertical-align: baseline;"> error, wait a moment for the model to loa…+
<p><span style="vertical-align: baseline;">In addition to registering your model, the above script tells AlloyDB Omni how to interpret the model’s raw output. In this example chain-of-thought (CoT) reasoning is part of the response inside </span><code style="vertical-align: base…+
<h3><strong style="vertical-align: baseline;">Step 5: Try it out!</strong></h3>+
<p><span style="vertical-align: baseline;">You can use functions like </span><code style="vertical-align: baseline;">ai.generate</code><span style="vertical-align: baseline;"> built-in to AlloyDB Omni to connect to your local model – without ever leaving the SQL c…+
<div class="block-code"><dl>+
<dt>code_block</dt>+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &quot;CREATE TABLE customer_feedback (\r\n id SERIAL PRIMARY KEY,\r\n customer_name TEXT,\r\n comment TEXT\r\n);\r\nINSERT INTO customer_feedback (customer_name, comment) VALUES\r\n(&#x27;Alice&#x27;, &#x…+
</dl></div>+
<div class="block-paragraph_advanced"><h2><span style="vertical-align: baseline;">Make it your own</span></h2>+
<p><span style="vertical-align: baseline;">Try out all the AI features that AlloyDB Omni has to offer! AlloyDB Omni </span><a href="https://cloud.google.com/alloydb/ai?e=48754805"><span style="text-decoration: underline; vertical-align: baseline;">supports</span>&…<p><span style="vertical-align: baseline;">The trouble starts later, when the prototype gets real users and the key comes along unchanged. By then it usually isn't one key. Every developer has their own, often several, sitting in </span><span style="vertical-align: baseline;">…<p><span style="vertical-align: baseline;">For example, imagine an account that normally spends $180 a month. One of those keys ends up in a public repo, a Slack channel or a mobile app bundle. Automated scrapers find it within minutes and use it to run large workloads. By the time the f…<p><span style="vertical-align: baseline;">In our recent post, </span><a href="https://cloud.google.com/blog/topics/developers-practitioners/10-questions-for-your-startup-developers"><span style="text-decoration: underline; vertical-align: baseline;">10 questions every …@
@@ -34,19 +155,19 @@<p><span style="vertical-align: baseline;">Before changing anything, find out where your keys are. The repo includes a small scanner that looks for strings shaped like Google API keys and for </span><span style="vertical-align: baseline;">api_key=</span><span style="…<div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;python -m step1_keyless_auth.scan_for_keys .&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f4f4e443910&gt;)])]&…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;python -m step1_keyless_auth.scan_for_keys .&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f5179c2d510&gt;)])]&…</dl></div><div class="block-paragraph_advanced"><h3><span style="vertical-align: baseline;">Step one: Give each person one login</span></h3><p><span style="vertical-align: baseline;">Each person on the team runs one command:</span></p></div><div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud auth application-default login&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f4f4e4547d0&gt;)])]&gt;<…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud auth application-default login&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f517a52fbd0&gt;)])]&gt;<…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">A browser window opens, you sign in with your work account and gcloud stores a short-lived credential on your machine. Every Google Cloud SDK finds it automatically. There is no key to copy, paste or l…<p><span style="vertical-align: baseline;">Then point your tools at the team project:</span></p></div><div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;export GOOGLE_CLOUD_PROJECT=my-startup-dev&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f4f4e454f90&gt;)])]&g…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;export GOOGLE_CLOUD_PROJECT=my-startup-dev&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f517a52ff90&gt;)])]&g…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">Someone has to grant you access to the project first. Step four shows how.</span></p><h3><span style="vertical-align: baseline;">Step two: Call any model with that login</span></h3>@
@@ -54,18 +175,18 @@<p><strong style="vertical-align: baseline;">Gemini</strong><span style="vertical-align: baseline;">, with the </span><a href="https://github.com/googleapis/python-genai" rel="noopener" target="_blank"><span style="text-decoration: underline; vertical-align: ba…<div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;from google import genai\r\n\r\nclient = genai.Client(enterprise=True, project=&quot;my-startup-dev&quot;, location=&quot;global&quot;)\r\nresp = client.models.generate_content(model=&quot;gemini-…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;from google import genai\r\n\r\nclient = genai.Client(enterprise=True, project=&quot;my-startup-dev&quot;, location=&quot;global&quot;)\r\nresp = client.models.generate_content(model=&quot;gemini-…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">enterprise=True</span><span style="vertical-align: baseline;"> sends the call to Gemini Platform instead of AI Studio. Older samples call the same flag </span><span style="vertical…<p><strong style="vertical-align: baseline;">Claude</strong><span style="vertical-align: baseline;">, with </span><a href="https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/partner-models/claude/use-claude"><span style="text-decoration: unde…<div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;from anthropic import AnthropicVertex\r\n\r\nclient = AnthropicVertex(project_id=&quot;my-startup-dev&quot;, region=&quot;global&quot;)\r\nmsg = client.messages.create(\r\n model=&quot;claude-s…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;from anthropic import AnthropicVertex\r\n\r\nclient = AnthropicVertex(project_id=&quot;my-startup-dev&quot;, region=&quot;global&quot;)\r\nmsg = client.messages.create(\r\n model=&quot;claude-s…</dl></div><div class="block-paragraph_advanced"><p><strong style="vertical-align: baseline;">Open models</strong><span style="vertical-align: baseline;"> such as OpenAI's </span><a href="https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/maas/openai/gp…<div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;import google.auth, google.auth.transport.requests\r\nfrom openai import OpenAI\r\n\r\ncreds, _ = google.auth.default(scopes=[&quot;https://www.googleapis.com/auth/cloud-platform&quot;])\r\ncreds.refresh(goog…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;import google.auth, google.auth.transport.requests\r\nfrom openai import OpenAI\r\n\r\ncreds, _ = google.auth.default(scopes=[&quot;https://www.googleapis.com/auth/cloud-platform&quot;])\r\ncreds.refresh(goog…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">Two things to know:</span></p><ul>@
@@ -83,7 +204,7 @@<p><span style="vertical-align: baseline;">Create the service account and deploy with it:</span></p></div><div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud iam service-accounts create agent-runtime \\\r\n --display-name=&quot;Runtime identity for the app&quot;\r\n\r\ngcloud run deploy my-agent \\\r\n --image=us-docker.pkg.dev/my-startup-prod/agents/api:…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud iam service-accounts create agent-runtime \\\r\n --display-name=&quot;Runtime identity for the app&quot;\r\n\r\ngcloud run deploy my-agent \\\r\n --image=us-docker.pkg.dev/my-startup-prod/agents/api:…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">Keep people and production apart. Developers work in </span><span style="vertical-align: baseline;">my-startup-dev</span><span style="vertical-align: baseline;"> under their own…<h3><span style="vertical-align: baseline;">Step four: Give each identity only what it needs</span></h3>@
@@ -92,12 +213,12 @@<p><span style="vertical-align: baseline;">For people, grant it to a Google group, not to individuals. Onboarding and offboarding then become a group membership change:</span></p></div><div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud projects add-iam-policy-binding my-startup-dev \\\r\n --member=&quot;group:[email redacted]&quot; \\\r\n --role=&quot;roles/aiplatform.user&quot;&#x27;), (&#x27;language&…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud projects add-iam-policy-binding my-startup-dev \\\r\n --member=&quot;group:[email redacted]&quot; \\\r\n --role=&quot;roles/aiplatform.user&quot;&#x27;), (&#x27;language&…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">For the app, grant it to the service account:</span></p></div><div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud projects add-iam-policy-binding my-startup-prod \\\r\n --member=&quot;serviceAccount:[email redacted]&quot; \\\r\n --role=&quot;roles/aiplatform.user&quot…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud projects add-iam-policy-binding my-startup-prod \\\r\n --member=&quot;serviceAccount:[email redacted]&quot; \\\r\n --role=&quot;roles/aiplatform.user&quot…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">It takes about 30 seconds longer than granting Editor. If anything is compromised later, the attacker gets one narrow role instead of the whole project. When someone leaves, remove them from the group …<p><span style="vertical-align: baseline;">In the Cloud Console, the Grant access dialog has a </span><strong style="vertical-align: baseline;">Help me choose roles</strong><span style="vertical-align: baseline;"> button. You describe the task in plain English and…@
@@ -119,17 +240,17 @@<p><span style="vertical-align: baseline;">Test keys go to the developer group:</span></p></div><div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud secrets create stripe-test-key --data-file=-\r\ngcloud secrets add-iam-policy-binding stripe-test-key \\\r\n --member=&quot;group:[email redacted]&quot; \\\r\n --role=&quot;roles/secret…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud secrets create stripe-test-key --data-file=-\r\ngcloud secrets add-iam-policy-binding stripe-test-key \\\r\n --member=&quot;group:[email redacted]&quot; \\\r\n --role=&quot;roles/secret…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">Anyone in the group can then fetch the key with their own login:</span></p></div><div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud secrets versions access latest --secret=stripe-test-key&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f4f4ebbce…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;gcloud secrets versions access latest --secret=stripe-test-key&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f517a52d5…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">Live keys stay in the production project, readable only by the app's service account. The app reads them at startup:</span></p></div><div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;from google.cloud import secretmanager\r\n\r\nsm = secretmanager.SecretManagerServiceClient()\r\nresp = sm.access_secret_version(\r\n name=&quot;projects/my-startup-prod/secrets/stripe-live-key/versions/latest…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;from google.cloud import secretmanager\r\n\r\nsm = secretmanager.SecretManagerServiceClient()\r\nresp = sm.access_secret_version(\r\n name=&quot;projects/my-startup-prod/secrets/stripe-live-key/versions/latest…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">Reading </span><span style="vertical-align: baseline;">--data-file=-</span><span style="vertical-align: baseline;"> from standard input keeps the value out of your shell history…<p><span style="vertical-align: baseline;">Then finish the job. Go to the </span><a href="https://aistudio.google.com/apikey" rel="noopener" target="_blank"><span style="text-decoration: underline; vertical-align: baseline;">AI Studio API keys page</span></a>…@
@@ -140,7 +261,7 @@<p><span style="vertical-align: baseline;">You can create one in the console under </span><strong style="vertical-align: baseline;">Budgets &amp; alerts</strong><span style="vertical-align: baseline;"> by choosing </span><strong style="vertical-align:…<div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;python -m bonus_spend_cap.create_spend_cap \\\r\n --billing-account 012345-6789AB-CDEF01 --amount 500 --dry-run&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;python -m bonus_spend_cap.create_spend_cap \\\r\n --billing-account 012345-6789AB-CDEF01 --amount 500 --dry-run&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">Know the limits before relying on it. Each cap covers a single project and a single service. Agent Platform, the Gemini API, Cloud Run and Cloud Run functions are eligible today. Enforcement runs on es…<p><span style="vertical-align: baseline;">Set one cap on the dev project and another on prod. An experiment then can't drain the budget your customers depend on. For a second layer, lower your </span><a href="https://cloud.google.com/docs/quotas/view-manage"><span style="…@
@@ -150,7 +271,7 @@<p><span style="vertical-align: baseline;">If your product lets the model write and run code, for example to analyze a customer's spreadsheet, that code should not run inside your application process. With </span><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/cod…<div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;config=types.GenerateContentConfig(\r\n tools=[types.Tool(code_execution=types.ToolCodeExecution())],\r\n)&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt;wa…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;config=types.GenerateContentConfig(\r\n tools=[types.Tool(code_execution=types.ToolCodeExecution())],\r\n)&#x27;), (&#x27;language&#x27;, &#x27;&#x27;), (&#x27;caption&#x27;, &lt;wa…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">The generated code never sees your environment variables, your files or your database.</span></p><h3><strong style="vertical-align: baseline;">Someone watching for unusual behavior</strong></h3>@
@@ -623,7 +744,7 @@<p><span style="vertical-align: baseline;">Given these needs, we knew we would want a range of models to build Kult. Fortunately, </span><a href="https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models"><span style="text-decoration: underline; vertical-align: bas…<div class="block-aside"><dl> <dt>aside_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;title&#x27;, &#x27;In the Clouds with... Omid Ashtari&#x27;), (&#x27;body&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f4f4e4aebd0&gt;), (&#x27;btn_text&#x27;, &#x27;Read it now.&#x27;), (&…+
<dd>&lt;ListValue: [StructValue([(&#x27;title&#x27;, &#x27;In the Clouds with... Omid Ashtari&#x27;), (&#x27;body&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f5179749090&gt;), (&#x27;btn_text&#x27;, &#x27;Read it now.&#x27;), (&…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">The lightest Gemini Flash tier handles high-volume, repetitive work, where we make thousands of small calls for every game we add. Gemini Flash runs every conversational turn. It works out what the pla…<p><span style="vertical-align: baseline;">Having that range on one API surface matters to a small team. The latest Gemini Flash models in particular sit at a point of price, speed, and quality that we have not found elsewhere, and they are the reason an always-on gaming companion works …@
@@ -1059,7 +1180,7 @@</div><div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;Gather context and plan\r\n -&gt; Parallel specialist sessions (concerns + dismissed concerns)\r\n -&gt; Triage\r\n -&gt; Per-bug deep checks\r\n -&gt; Review report&#x27;), (&#x27;languag…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;Gather context and plan\r\n -&gt; Parallel specialist sessions (concerns + dismissed concerns)\r\n -&gt; Triage\r\n -&gt; Per-bug deep checks\r\n -&gt; Review report&#x27;), (&#x27;languag…</dl></div><div class="block-paragraph_advanced"><p><span style="vertical-align: baseline;">Notes on each step:</span></p><ol>@
@@ -1839,7 +1960,7 @@<p><span style="vertical-align: baseline;">Here’s a quick example showing how you can classify customer feedback directly within a SQL query:</span></p></div><div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &quot;SET google_ml_integration.enable_preview_ai_functions = TRUE;\r\n\r\nCREATE TABLE product_reviews (id INT, review TEXT);\r\n\r\nINSERT INTO product_reviews VALUES\r\n(1, &#x27;Fantastic, would buy again!&#x27…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &quot;SET google_ml_integration.enable_preview_ai_functions = TRUE;\r\n\r\nCREATE TABLE product_reviews (id INT, review TEXT);\r\n\r\nINSERT INTO product_reviews VALUES\r\n(1, &#x27;Fantastic, would buy again!&#x27…</dl></div><div class="block-paragraph_advanced"><h3><strong style="vertical-align: baseline;">Extracting structured JSON with ai.extract</strong></h3><p><span style="vertical-align: baseline;">The </span><code style="vertical-align: baseline;">ai.extract</code><span style="vertical-align: baseline;"> function transforms unstructured text into structured JSON data matching your target schema — specified as a JSO…@
@@ -1858,7 +1979,7 @@<p><span style="vertical-align: baseline;">Here’s an example extracting clinical fields from free-form medical notes:</span></p></div><div class="block-code"><dl> <dt>code_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;SET google_ml_integration.enable_preview_ai_functions = TRUE;\r\n\r\nSELECT ai.extract( \r\n input =&gt; \&#x27;Patient Jane Smith, 52 years old, visited the clinic on Oct 25. She is currently experiencing a…+
<dd>&lt;ListValue: [StructValue([(&#x27;code&#x27;, &#x27;SET google_ml_integration.enable_preview_ai_functions = TRUE;\r\n\r\nSELECT ai.extract( \r\n input =&gt; \&#x27;Patient Jane Smith, 52 years old, visited the clinic on Oct 25. She is currently experiencing a…</dl></div><div class="block-paragraph_advanced"><h3><strong style="vertical-align: baseline;">Speeding up queries with smart batching</strong></h3><p><span style="vertical-align: baseline;">Running AI evaluations row-by-row can slow down query execution. AlloyDB addresses this with smart batching for AI functions. When you use </span><code style="vertical-align: baseline;">ai.classify</code><span style="vertica…@
@@ -3993,7 +4114,7 @@<p><span style="vertical-align: baseline;">Stay tuned for monthly updates on Google Cloud’s AI announcements, news, and best practices. For a deeper dive into the latest from Google Cloud customers, read our monthly recap, </span><a href="https://cloud.google.com/blog/topics/cus…<div class="block-aside"><dl> <dt>aside_block</dt>-
<dd>&lt;ListValue: [StructValue([(&#x27;title&#x27;, &#x27;$300 in free credit to try Google Cloud AI and ML&#x27;), (&#x27;body&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f4f4ea8b290&gt;), (&#x27;btn_text&#x27;, &#x27;Start building …+
<dd>&lt;ListValue: [StructValue([(&#x27;title&#x27;, &#x27;$300 in free credit to try Google Cloud AI and ML&#x27;), (&#x27;body&#x27;, &lt;wagtail.rich_text.RichText object at 0x7f5179d716d0&gt;), (&#x27;btn_text&#x27;, &#x27;Start building …</dl></div><div class="block-paragraph_advanced"><hr/><h2 style="text-align: center;">September</h2>@
@@ -4648,132 +4769,4 @@ </section></div>-
</div></description><pubDate>Mon, 02 Nov 2026 16:00:00 +0000</pubDate><guid>https://cloud.google.com/blog/products/ai-machine-learning/what-google-cloud-announced-in-ai-this-month/</guid><category>Google Cloud</category><category>AI & Machine Learning</category><media:content height="540" …-
<p><span style="vertical-align: baseline;">With this release, we’re delivering ways to protect your workloads from runaway costs without risking resource deletion. </span><strong style="vertical-align: baseline;">More importantly, we’re introducing three major updates, direct…-
<h3><span style="vertical-align: baseline;">How the new spend caps can help your business </span></h3>-
<p><span style="vertical-align: baseline;">We have significantly enhanced the usability and power of spend caps in three ways: </span></p>-
<p><span style="vertical-align: baseline;">1. </span><strong style="vertical-align: baseline;">Automation through spend caps API</strong><span style="vertical-align: baseline;">: Managing guardrails manually across hundreds of projects is a major operational chall…-
<p><span style="vertical-align: baseline;">2. </span><strong style="vertical-align: baseline;">Real-time visibility with live cost reports: </strong><span style="vertical-align: baseline;">Spend caps for AI services trigger within minutes of usage using estimated,…-
<div class="block-image_full_width">-
-
-
-
-
-
-
-
<div class="article-module h-c-page">-
<div class="h-c-grid">-
-
-
<figure class="article-image--large-
-
-
h-c-grid__col-
h-c-grid__col--6 h-c-grid__col--offset-3-
-
-
"-
>-
-
-
-
-
<img-
src="https://storage.googleapis.com/gweb-cloudblog-publish/images/Live_Costs_-_Hi_Res_Mock.max-1000x1000.png"-
-
alt="Live Costs - Hi Res Mock">-
-
</a>-
-
</figure>-
-
-
</div>-
</div>-
-
-
-
-
-
</div>-
<div class="block-paragraph_advanced"><p><strong style="vertical-align: baseline;">3. Automated guardrails for your monthly resets: </strong><span style="vertical-align: baseline;">Before, once a spend cap was triggered, the usage block remained locked until you manuall…-
<h3><span style="vertical-align: baseline;">Best practices for deploying spend caps</span></h3>-
<p><span style="vertical-align: baseline;">As you roll out spend caps across your organization, keep these operational tips in mind:</span></p>-
<ol>-
<li role="presentation"><strong style="vertical-align: baseline;">Target non-production environments first</strong><span style="vertical-align: baseline;">: Start by applying strict, low-dollar spend caps to your developer sandboxes, testing clusters, and experimental AI agen…-
<li role="presentation"><strong style="vertical-align: baseline;">Configure alerts wisely</strong><span style="vertical-align: baseline;">: Default alerts are automatically sent to billing administrators and project owners at 50%, 80%, and 100% of the cap. Make sure the right…-
<li role="presentation"><strong style="vertical-align: baseline;">Understand fixed vs on-demand costs</strong><span style="vertical-align: baseline;">: Spend caps halt pay-as-you-go and CUD-covered requests once the budget threshold is hit. However, Provisioned Throughput is …-
</ol>-
<h3><span style="vertical-align: baseline;">Refresher on GCP’s dual-pronged defense playbook</span></h3>-
<p><span style="vertical-align: baseline;">Spend Caps work seamlessly alongside our native Early Anomalies Detection to provide a closed-loop defense for your cloud spend. Read our previous </span><a href="https://cloud.google.com/blog/topics/cost-management/new-early-anomalies-…-
<div align="left">-
<div style="color: #5f6368; overflow-x: auto; overflow-y: hidden; width: 100%;">-
<div style="color: #5f6368; overflow-x: auto; overflow-y: hidden; width: 100%;">-
<div style="color: #5f6368; overflow-x: auto; overflow-y: hidden; width: 100%;">-
<div style="color: #5f6368; overflow-x: auto; overflow-y: hidden; width: 100%;">-
<div style="color: #5f6368; overflow-x: auto; overflow-y: hidden; width: 100%;">-
<div style="color: #5f6368; overflow-x: auto; overflow-y: hidden; width: 100%;"><table><colgroup><col/><col/><col/><col/><col/></colgroup>-
<tbody>-
<tr>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><strong style="vertical-align: baseline;">Playbook step</strong></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><strong style="vertical-align: baseline;">Feature</strong></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><strong style="vertical-align: baseline;">Focus</strong></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><strong style="vertical-align: baseline;">Core action</strong></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><strong style="vertical-align: baseline;">Key benefit</strong></p>-
</td>-
</tr>-
<tr>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><span style="vertical-align: baseline;">Step 1</span></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><span style="vertical-align: baseline;">Early anomalies</span></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><span style="vertical-align: baseline;">Predictive monitoring</span></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><span style="vertical-align: baseline;">Analyzes early cost signals daily to alert you of directional spend variances</span></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><span style="vertical-align: baseline;">Spot anomalous cost spikes early and pinpoint the exact SKU driving the trend</span></p>-
</td>-
</tr>-
<tr>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><span style="vertical-align: baseline;">Step 2</span></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><span style="vertical-align: baseline;">Spend caps</span></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><span style="vertical-align: baseline;">Financial enforcement</span></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">-
<p><span style="vertical-align: baseline;">Programmatically pauses usage for a specific project/service once a budget is breached</span></p>-
</td>-
<td style="vertical-align: top; border: 1px solid #000000; padding: 16px;">Diff display stops at 400 lines. The line counts above are from the whole diff. 94 lines shown here cut at 300 characters. 6 email addresss masked in this display. See the About page on personal data. The raw artifact at this commit is linked above.