Find answers from the community

Updated 2 years ago

Summary graph

If I pass the documents directly:

PDFReader = download_loader("PDFReader") loader = PDFReader() document1 = loader.load_data(file=Path('./file1.pdf')) document2 = loader.load_data(file=Path('./file2.pdf')) graph_builder = QASummaryGraphBuilder(service_context=service_context_gpt4) graph = graph_builder.build_graph_from_documents(documents=[document1, document2])

'list' object has no attribute 'get_text'
L
2 comments
Is document1 and document2 actually a list of documents?
The input should be just a single list of document objects πŸ€”
Add a reply
Sign up and join the conversation on Discord