diff --git a/apps/docs/content/guides/ai/structured-unstructured.mdx b/apps/docs/content/guides/ai/structured-unstructured.mdx index 3b722be9605..52872c07c71 100644 --- a/apps/docs/content/guides/ai/structured-unstructured.mdx +++ b/apps/docs/content/guides/ai/structured-unstructured.mdx @@ -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://:@:/" + +# create vector store client +vx = vecs.create_client(DB_CONNECTION) + docs = vx.get_or_create_collection(name="docs", dimension=1536) docs.upsert(vectors=[