chroma
chroma copied to clipboard
[Bug]: Metadata issue
What happened?
Any ways of using .add (documents=..., metadatas=...)
with nested metadata? I have a dict with multiple nested lists and dicts
Versions
Python 3.11, Chroma Version: 0.4.22
Relevant log output
Expected metadata value to be a str, int, float or bool, got ... which is a <class 'list'>.
@Dyke-F, thanks for raising this. This behavior is by design. What people re doing to work around this is to json.dumps() and store it as text.
Closing this since we don't support this behavior. @Dyke-F let us know if we can do anything to help!