Skip to content

Commit 00ad8be

Browse files
authored
oss: update weaviate (#493)
Fixes langchain-ai/langchain#32774
1 parent 581e2d0 commit 00ad8be

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/oss/python/integrations/vectorstores/weaviate.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@ Some Weaviate instances, such as those running on WCS, have authentication enabl
3434

3535
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).
3636

37+
### Connect to an existing collection (reuse an index)
38+
39+
If you already created a collection in your local Weaviate instance, you can connect to it directly:
40+
41+
```python
42+
from langchain_weaviate import WeaviateVectorStore
43+
44+
store = WeaviateVectorStore(
45+
client=weaviate_client,
46+
index_name="Test",
47+
text_key="text",
48+
)
49+
```
50+
3751
## Installation
3852

3953
```python

0 commit comments

Comments
 (0)