mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-24 17:30:38 +00:00

* Fix Document init when passing non existing fields * Update releasenotes/notes/fix-document-init-09c1cbb14202be7d.yaml Co-authored-by: Massimiliano Pippi <mpippi@gmail.com> * Fix linting --------- Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>
5 lines
237 B
YAML
5 lines
237 B
YAML
---
|
|
preview:
|
|
- |
|
|
Make Document's constructor fail when is passed fields that are not present in the dataclass. An exception is made for "content_type" and "id_hash_keys": they are accepted in order to keep backward compatibility.
|