A community member encountered an issue with the EntityExtractor where they received a 'TypeError: Object of type set is not JSON serializable' error when persisting the index. They believe this is because the 'entities' field in the index docstore is a set instead of a list. Their solution is to convert the set of entities to a list before building the index. Another community member acknowledged that this is a bug, stating that they had made the 'entities' field a set to reduce duplicates.
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?