Skip to content

Commit

Permalink
point to changed deserialization utility function (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 authored Sep 4, 2024
1 parent 4de5ccc commit 42bfbca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from haystack import Document, component, default_to_dict
from haystack.core.serialization import default_from_dict
from haystack.document_stores.types import DocumentStore
from haystack.utils import deserialize_document_store_in_init_parameters
from haystack.utils import deserialize_document_store_in_init_params_inplace


@component
Expand Down Expand Up @@ -96,7 +96,7 @@ def from_dict(cls, data: Dict[str, Any]) -> "AutoMergingRetriever":
:returns:
An instance of the component.
"""
data = deserialize_document_store_in_init_parameters(data)
deserialize_document_store_in_init_params_inplace(data)
return default_from_dict(cls, data)

@staticmethod
Expand Down

0 comments on commit 42bfbca

Please sign in to comment.