Skip to content

Commit 7c3c655

Browse files
Fixed SingleStore imports (#426)
* Fixed SingleStore imports * Fixed SingleStoreEmbeddingRetriever import
1 parent ccba19d commit 7c3c655

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

integrations/singlestore.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ for traditional text-based retrieval.
4343
The `singlestore-haystack` library enables SingleStore as
4444
a [DocumentStore](https://docs.haystack.deepset.ai/docs/document-store) by implementing the
4545
Haystack [DocumentStore protocol](https://docs.haystack.deepset.ai/docs/document-store#documentstore-protocol) methods.
46-
Import the `SingleStoreDocumentStore` implementation from the `singlestore_haystack` package:
46+
Import the `SingleStoreDocumentStore` implementation from the `haystack_integrations.document_stores.singlestore_haystack` package:
4747

4848
```python
49-
from singlestore_haystack import SingleStoreDocumentStore
49+
from haystack_integrations.document_stores.singlestore_haystack import SingleStoreDocumentStore
5050
```
5151

5252
In addition to `SingleStoreDocumentStore`, the library includes the following haystack components which can be used in a
@@ -151,7 +151,7 @@ export S2_CONN_STR="singlestoredb://USER:PASSWORD@HOST:PORT"
151151
```
152152

153153
```python
154-
from singlestore_haystack import SingleStoreDocumentStore
154+
from haystack_integrations.document_stores.singlestore_haystack import SingleStoreDocumentStore
155155

156156
document_store = SingleStoreDocumentStore(
157157
database_name="haystack_db", # The name of the database in SingleStore
@@ -252,7 +252,7 @@ from haystack import Document, Pipeline
252252
from haystack.components.embedders import SentenceTransformersDocumentEmbedder
253253
from haystack.components.writers import DocumentWriter
254254

255-
from singlestore_haystack import SingleStoreDocumentStore
255+
from haystack_integrations.document_stores.singlestore_haystack import SingleStoreDocumentStore
256256

257257
documents = [Document(content="This is document 1"), Document(content="This is document 2")]
258258

@@ -337,7 +337,8 @@ from typing import List
337337
from haystack import Document, Pipeline
338338
from haystack.components.embedders import SentenceTransformersDocumentEmbedder, SentenceTransformersTextEmbedder
339339
340-
from singlestore_haystack import SingleStoreDocumentStore, SingleStoreEmbeddingRetriever
340+
from haystack_integrations.document_stores.singlestore_haystack import SingleStoreDocumentStore
341+
from haystack_integrations.components.retrievers.singlestore_haystack import SingleStoreEmbeddingRetriever
341342
342343
document_store = SingleStoreDocumentStore(
343344
database_name="haystack_db", # The name of the database in SingleStore

0 commit comments

Comments
 (0)