Hello, I tried to use JSONNodeparser and got this error : AttributeError 'tuple' object has no attribute 'id' File "/home/mec/dekstop/llamaIndex/script.py", line 511, in <module> nodesDesc = parser.get_nodes_from_documents(description) AttributeError: 'tuple' object has no attribute 'id'
With this code : parser = JSONNodeParser() description = Document(text=str(descriptionJson)) nodesDesc = parser.get_nodes_from_documents(description)
You need a list of Documents parser = JSONNodeParser()
descriptions = [Document(text=str(descriptionJson))]
nodesDesc = parser.get_nodes_from_documents(descriptions)