Skip to content

Commit 6048f09

Browse files
authored
improve weaviate integration page (#266)
1 parent 162e858 commit 6048f09

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

integrations/weaviate-document-store.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,16 @@ pip install weaviate-haystack
4444

4545
## Usage
4646

47-
Once installed, initialize your Weaviate database to use it with Haystack 2.0:
47+
Once installed, initialize your Weaviate database to use it with Haystack 2.x.
4848

49-
```python
50-
from haystack.utils.auth import Secret
51-
from haystack_integrations.document_stores.weaviate import WeaviateDocumentStore, AuthApiKey
49+
In this example, we use the temporary embedded version for simplicity.
50+
To use a self-hosted Docker container or Weaviate Cloud Service, take a look at the [docs](https://docs.haystack.deepset.ai/docs/weaviatedocumentstore).
5251

52+
```python
53+
from haystack_integrations.document_stores.weaviate import WeaviateDocumentStore
54+
from weaviate.embedded import EmbeddedOptions
5355

54-
auth_client_secret = AuthApiKey(Secret.from_token("MY_WEAVIATE_API_KEY"))
55-
document_store = WeaviateDocumentStore(auth_client_secret=auth_client_secret)
56+
document_store = WeaviateDocumentStore(embedded_options=EmbeddedOptions())
5657
```
5758

5859
### Writing Documents to WeaviateDocumentStore

0 commit comments

Comments
 (0)