Value for metadata entities must be one of (str, int, float, None)
metadata["entities"] = str(metadata["entitites"])
entities = ["Tom", "Peter"] metadata["entities"] = str(entities) documents.append(Document( id_=str(s['id']), text=s.get('bodytext', ''), metadata=metadata }
query_engine = index.as_query_engine( similarity_top_k=3, filters=MetadataFilters( filters=[ ExactMatchFilter(key="user_id", value="12345") ] ), )