Find answers from the community

Updated 5 months ago

Hi I am wondering whether anyone

At a glance
Hi, I am wondering whether anyone suffered the same issue: with using the EntityExtractor, there would be a 'TypeError: Object of type set is not JSON serializable' error when persisting the index? I find it is probably because the 'entities' field in the index docstore is a set instead of list. My solution is converting the set of entities to list before building the index. I am wondering whether it is a module bug need to be fixed?
Attachment
image.png
L
1 comment
yea its a bug. I made it a set so that it would reduce duplicates, whoops
Add a reply
Sign up and join the conversation on Discord