From c1395f1b91d5c08566b5f11545ff92f378703346 Mon Sep 17 00:00:00 2001 From: may <53140703+soo-toance@users.noreply.github.com> Date: Mon, 1 Sep 2025 16:55:09 +0900 Subject: [PATCH 1/2] docs(weaviate): add example for reusing an existing collection Added a short section to the Weaviate integration docs showing how to connect to an existing collection (reuse an index) with `WeaviateVectorStore`. This helps clarify required parameters (`index_name`, `text_key`) when loading a pre-existing store, which was previously missing. --- .../integrations/vectorstores/weaviate.ipynb | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/docs/integrations/vectorstores/weaviate.ipynb b/docs/docs/integrations/vectorstores/weaviate.ipynb index b3ee93ae34e43..6107c3d0eb353 100644 --- a/docs/docs/integrations/vectorstores/weaviate.ipynb +++ b/docs/docs/integrations/vectorstores/weaviate.ipynb @@ -47,7 +47,22 @@ "\n", "Some Weaviate instances, such as those running on WCS, have authentication enabled, such as API key and/or username+password authentication.\n", "\n", - "Read the [client authentication guide](https://weaviate.io/developers/weaviate/client-libraries/python#authentication) for more information, as well as the [in-depth authentication configuration page](https://weaviate.io/developers/weaviate/configuration/authentication)." + "Read the [client authentication guide](https://weaviate.io/developers/weaviate/client-libraries/python#authentication) for more information, as well as the [in-depth authentication configuration page](https://weaviate.io/developers/weaviate/configuration/authentication).", + "\n", + "### Connect to an existing collection (reuse an index)\n", + "If you already created a collection in your local Weaviate instance, you can connect to it directly:" + "```python\n", + "from langchain_weaviate import WeaviateVectorStore\n", + "\n", + "```python\n", + "from langchain_weaviate import WeaviateVectorStore\n", + "\n", + "store = WeaviateVectorStore(\n", + " client=weaviate_client,\n", + " index_name=\"Test\",\n", + " text_key=\"text\",\n", + ")\n", + "```\n" ] }, { From d124109b1b423057ab8297f49b9b63045647559d Mon Sep 17 00:00:00 2001 From: may <53140703+soo-toance@users.noreply.github.com> Date: Mon, 1 Sep 2025 17:34:28 +0900 Subject: [PATCH 2/2] docs: add example for connecting to an existing Weaviate collection added a short section in the Weaviate integration docs showing how to reuse an existing index with `WeaviateVectorStore`. clarifies required parameters (`index_name`, `text_key`) when loading a pre-existing store. --- docs/docs/integrations/vectorstores/weaviate.ipynb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/docs/integrations/vectorstores/weaviate.ipynb b/docs/docs/integrations/vectorstores/weaviate.ipynb index 6107c3d0eb353..c1d43e00c8f3d 100644 --- a/docs/docs/integrations/vectorstores/weaviate.ipynb +++ b/docs/docs/integrations/vectorstores/weaviate.ipynb @@ -47,12 +47,10 @@ "\n", "Some Weaviate instances, such as those running on WCS, have authentication enabled, such as API key and/or username+password authentication.\n", "\n", - "Read the [client authentication guide](https://weaviate.io/developers/weaviate/client-libraries/python#authentication) for more information, as well as the [in-depth authentication configuration page](https://weaviate.io/developers/weaviate/configuration/authentication).", + "Read the [client authentication guide](https://weaviate.io/developers/weaviate/client-libraries/python#authentication) for more information, as well as the [in-depth authentication configuration page](https://weaviate.io/developers/weaviate/configuration/authentication).\n", "\n", "### Connect to an existing collection (reuse an index)\n", - "If you already created a collection in your local Weaviate instance, you can connect to it directly:" - "```python\n", - "from langchain_weaviate import WeaviateVectorStore\n", + "If you already created a collection in your local Weaviate instance, you can connect to it directly:", "\n", "```python\n", "from langchain_weaviate import WeaviateVectorStore\n",