Skip to content

Commit

Permalink
remove Document Store decorator (#76)
Browse files Browse the repository at this point in the history
* remove decorator

* Update integrations/elasticsearch/src/elasticsearch_haystack/__about__.py

Co-authored-by: Massimiliano Pippi <[email protected]>

* Update integrations/opensearch/src/opensearch_haystack/__about__.py

Co-authored-by: Massimiliano Pippi <[email protected]>

---------

Co-authored-by: Massimiliano Pippi <[email protected]>
  • Loading branch information
anakin87 and masci authored Dec 4, 2023
1 parent 0e46ed1 commit 3999dcc
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion integrations/chroma/src/chroma_haystack/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-present deepset GmbH <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
__version__ = "0.7.0"
__version__ = "0.8.0"
2 changes: 0 additions & 2 deletions integrations/chroma/src/chroma_haystack/document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import numpy as np
from chromadb.api.types import GetResult, QueryResult, validate_where, validate_where_document
from haystack.dataclasses import Document
from haystack.document_stores.decorator import document_store
from haystack.document_stores.protocols import DuplicatePolicy

from chroma_haystack.errors import ChromaDocumentStoreFilterError
Expand All @@ -18,7 +17,6 @@
logger = logging.getLogger(__name__)


@document_store
class ChromaDocumentStore:
"""
We use the `collection.get` API to implement the document store protocol,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-present deepset GmbH <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
__version__ = "0.0.2"
__version__ = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from elasticsearch import Elasticsearch, helpers # type: ignore[import-not-found]
from haystack import default_from_dict, default_to_dict
from haystack.dataclasses import Document
from haystack.document_stores import DocumentStoreError, DuplicateDocumentError, DuplicatePolicy, document_store
from haystack.document_stores import DocumentStoreError, DuplicateDocumentError, DuplicatePolicy
from haystack.utils.filters import convert

from elasticsearch_haystack.filters import _normalize_filters
Expand All @@ -30,7 +30,6 @@
BM25_SCALING_FACTOR = 8


@document_store
class ElasticsearchDocumentStore:
def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-present deepset GmbH <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
__version__ = "0.0.2"
__version__ = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np
from haystack import default_from_dict, default_to_dict
from haystack.dataclasses import Document
from haystack.document_stores import DocumentStoreError, DuplicateDocumentError, DuplicatePolicy, document_store
from haystack.document_stores import DocumentStoreError, DuplicateDocumentError, DuplicatePolicy
from haystack.utils.filters import convert
from opensearchpy import OpenSearch
from opensearchpy.helpers import bulk
Expand All @@ -28,7 +28,6 @@
BM25_SCALING_FACTOR = 8


@document_store
class OpenSearchDocumentStore:
def __init__(
self,
Expand Down

0 comments on commit 3999dcc

Please sign in to comment.