From f6f5bf8331dc184e3f322ae0bfe970b36975eabd Mon Sep 17 00:00:00 2001 From: Leonard <54533009+leonardtan13@users.noreply.github.com> Date: Wed, 30 Oct 2024 00:34:24 +0800 Subject: [PATCH] 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> --- apps/docs/content/guides/ai/structured-unstructured.mdx | 6 ++++++ 1 file changed, 6 insertions(+) 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=[