Skip to content
Discussion options

You must be logged in to vote

🤖

Hello,

Based on the error message you're receiving, it seems like the run method of the load_summarize_chain class is expecting an object with a page_content attribute, but it's receiving a string instead.

From the context provided, it's not clear what the expected input type for the run method is, as it's not explicitly defined in the load_summarize_chain class. However, a similar issue was solved by changing the line of code from texts = text_splitter.split_documents(pages) to texts = text_splitter.create_documents(pages). You might want to try a similar approach.

Also, the split_text method of the RecursiveCharacterTextSplitter class returns a list of strings, where each string repre…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ilyasbendev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant