Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: fix embeddings (#45968)

Vaibhav5bf9948bb065
diff --git a/apps/docs/content/guides/ai/automatic-embeddings.mdx b/apps/docs/content/guides/ai/automatic-embeddings.mdx
index 1dc3ccd78aa..e87691d6153 100644
--- a/apps/docs/content/guides/ai/automatic-embeddings.mdx
+++ b/apps/docs/content/guides/ai/automatic-embeddings.mdx
@@ -277,7 +277,7 @@ begin
group by batch_num
)
-- Finally aggregate all batches into array
- select array_agg(batch_array)
+ select coalesce(array_agg(batch_array), array[]::jsonb[])
from batched_jobs
into job_batches;