Skip to content

Commit

Permalink
More simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Jul 5, 2024
1 parent 7d8c0a2 commit 62a4b46
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ def from_dict(cls, data: Dict[str, Any]) -> "ChromaQueryTextRetriever":
"""
document_store = ChromaDocumentStore.from_dict(data["init_parameters"]["document_store"])
data["init_parameters"]["document_store"] = document_store
if "filter_policy" in data["init_parameters"]:
data["init_parameters"]["filter_policy"] = FilterPolicy.from_str(data["init_parameters"]["filter_policy"])
data["init_parameters"]["filter_policy"] = FilterPolicy.from_str(data["init_parameters"]["filter_policy"])

return default_from_dict(cls, data)

Expand Down

0 comments on commit 62a4b46

Please sign in to comment.