haystack/releasenotes/notes/fix-document-flatten-metadata-ef61dbbae08b1db7.yaml
Massimiliano Pippi ff3165b8b8
fix: fix un-flattening of metadata (#6318)
* fix un-flattening of metadata

* test should pass

* add relnote

* change policy: raise an error if both meta and keys are passed

* Update document.py

* support python 3.8

* adjust wording in the error message
2023-11-16 17:10:53 +01:00

9 lines
282 B
YAML

---
preview:
- |
Fix a failure that occurred when creating a document passing the 'meta' keyword
to the constructor. Raise a specific ValueError if the 'meta' keyword is passed
along with metadata as keyword arguments, the two options are mutually exclusive
now.