Skip to content

Commit

Permalink
Update qdrant-document-store.md (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
masci authored Jan 23, 2024
1 parent 922fe7d commit e32b20d
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions integrations/qdrant-document-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ Once installed, you can already start using `QdrantDocumentStore` as any other s
embeddings.

```python
from qdrant_haystack import QdrantDocumentStore
from haystack_integrations.document_stores.qdrant import QdrantDocumentStore
# Note: for Haystack 1.x use the following import instead:
# from qdrant_haystack import QdrantDocumentStore


document_store = QdrantDocumentStore(
url="localhost",
Expand Down Expand Up @@ -84,7 +87,10 @@ option. It might be simply enabled by passing `:memory:` as first parameter, whi
instance of `QdrantDocumentStore`.

```python
from qdrant_haystack import QdrantDocumentStore
from haystack_integrations.document_stores.qdrant import QdrantDocumentStore
# Note: for Haystack 1.x use the following import instead:
# from qdrant_haystack import QdrantDocumentStore


document_store = QdrantDocumentStore(
":memory:",
Expand All @@ -102,7 +108,10 @@ might be better to use on disk storage and pass the path that should be used to
the data.

```python
from qdrant_haystack import QdrantDocumentStore
from haystack_integrations.document_stores.qdrant import QdrantDocumentStore
# Note: for Haystack 1.x use the following import instead:
# from qdrant_haystack import QdrantDocumentStore


document_store = QdrantDocumentStore(
path="/home/qdrant/storage_local",
Expand All @@ -119,7 +128,10 @@ If you prefer not to manage your own Qdrant instance, [Qdrant Cloud](https://clo
might be a better option.

```python
from qdrant_haystack import QdrantDocumentStore
from haystack_integrations.document_stores.qdrant import QdrantDocumentStore
# Note: for Haystack 1.x use the following import instead:
# from qdrant_haystack import QdrantDocumentStore


document_store = QdrantDocumentStore(
url="https://YOUR-CLUSTER-URL.aws.cloud.qdrant.io",
Expand Down

0 comments on commit e32b20d

Please sign in to comment.