mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Update structured-unstructured.mdx (#29991)
* Update structured-unstructured.mdx * Update apps/docs/content/guides/ai/structured-unstructured.mdx --------- Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
This commit is contained in:
1 parent
646989bb91
commit
f6f5bf8331
1 file changed
+6
@@ -59,6 +59,12 @@ Client libraries like python's [vecs](https://github.com/supabase/vecs) use this
|
||||
#!/usr/bin/env python3
|
||||
import vecs
|
||||
|
||||
# In practice, do not hard-code your password. Use environment variables.
|
||||
DB_CONNECTION = "postgresql://<user>:<password>@<host>:<port>/<db_name>"
|
||||
|
||||
# create vector store client
|
||||
vx = vecs.create_client(DB_CONNECTION)
|
||||
|
||||
docs = vx.get_or_create_collection(name="docs", dimension=1536)
|
||||
|
||||
docs.upsert(vectors=[
|
||||
|
||||
Reference in new issue
Block a user