Skip to content

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

fix vector example

Gareth Jones1d83665a9cc1
diff --git a/examples/ai/vector_hello_world.ipynb b/examples/ai/vector_hello_world.ipynb
index 7749e2a755a..002ceb8efe7 100644
--- a/examples/ai/vector_hello_world.ipynb
+++ b/examples/ai/vector_hello_world.ipynb
@@ -141,7 +141,7 @@
"source": [
"# add records to the collection\n",
"docs.upsert(\n",
- " vectors=[\n",
+ " records=[\n",
" (\n",
" \"vec0\", # the vector's identifier\n",
" [0.1, 0.2, 0.3], # the vector. list or np.array\n",
@@ -273,7 +273,7 @@
],
"source": [
"docs.query(\n",
- " query_vector=[0.4,0.5,0.6], # required\n",
+ " data=[0.4,0.5,0.6], # required\n",
" limit=5, # number of records to return\n",
" filters={}, # metadata filters\n",
" measure=\"cosine_distance\", # distance measure to use\n",