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:
LeonardandCharis authored and GitHub committed 2024-10-29 16:34:24 +00:00
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=[