mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix vector example
This commit is contained in:
1 parent
6410d3e641
commit
1d83665a9c
1 file changed
+2
-2
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user