my code looks liek this: for text in texts: if self.find_matching_keyword(text, key_words_for_remove_unneeded_text): dc = GPTListIndex.from_documents([Document(text)]) tree_index_list.append(dc) tree_index_summary.append(str(text))
hello, an error when i use GPTIndexChatMemory:<class 'gpt_index.indices.list.base.GPTListIndex'> Traceback (most recent call last): File "/Users/apple/Desktop/AI/chatbot.py", line 107, in <module> memory = GPTIndexChatMemory( ^^^^^^^^^^^^^^^^^^^ File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 1 validation error for GPTIndexChatMemory index instance of BaseGPTIndex expected (type=type_error.arbitrary_type; expected_arbitrary_type=BaseGPTIndex) I am so puzzled, how can i fix it? hope anyone can help...thks