chroma icon indicating copy to clipboard operation
chroma copied to clipboard

[Bug]: Metadata issue

Open Dyke-F opened this issue 1 year ago • 1 comments

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 avatar Apr 05 '24 11:04 Dyke-F

@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.

tazarov avatar Apr 06 '24 07:04 tazarov

Closing this since we don't support this behavior. @Dyke-F let us know if we can do anything to help!

beggers avatar May 02 '24 18:05 beggers