unstructured
9fea85dc - fix: remove none value keys from flattened dictionary (#2442)

Commit
1 year ago
fix: remove none value keys from flattened dictionary (#2442) When a partitioned or embedded document json has null values, those get converted to a dictionary with None values. This happens in the metadata. I have not see it in other keys. Chroma and Pinecone do not like those None values. `flatten_dict` has been modified with a `remove_none` arg to remove keys with None values. Also, Pinecone has been pinned at 2.2.4 because at 3.0 and above it breaks our code. --------- Co-authored-by: potter-potter <david.potter@gmail.com>
Author
Parents
Loading