haystack/releasenotes/notes/use-document-store-from-dict-db7975d0e0e5e451.yaml
Stefano Fiorucci 109e98aa44
fix: deserialize Document Stores using specific from_dict class methods (#8207)
* use from_dict

* unused import

* improve logic

* improve reno
2024-08-14 10:56:32 +02:00

8 lines
373 B
YAML

---
fixes:
- |
For components that support multiple Document Stores, prioritize using the specific `from_dict` class method
for deserialization when available. Otherwise, fall back to the generic `default_from_dict` method.
This impacts the following generic components: `CacheChecker`, `DocumentWriter`, `FilterRetriever`, and
`SentenceWindowRetriever`.