Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve weaviate integration page #266

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions integrations/weaviate-document-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ pip install weaviate-haystack

## Usage

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

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

```python
from haystack_integrations.document_stores.weaviate import WeaviateDocumentStore
from weaviate.embedded import EmbeddedOptions

auth_client_secret = AuthApiKey(Secret.from_token("MY_WEAVIATE_API_KEY"))
document_store = WeaviateDocumentStore(auth_client_secret=auth_client_secret)
document_store = WeaviateDocumentStore(embedded_options=EmbeddedOptions())
```

### Writing Documents to WeaviateDocumentStore
Expand Down