hi all, if i am embedding a book, is there a way to make each chapter a node, so that when i ask "summarize chapter x" it works through this node only? would appreciate guidance. thank you!
thank you , the chapters are not small , 3-4 pages of text, will the basic-usage-pattern be enough to address queries like "summarize chapter 3" as an example?
Not entirely though. You can try adding metadata to each chapter or try DocumentsummaryIndex along with metadata. This may be able to help you in query like these.
I was just wondering, I was thinking if he was using a vector db, he could do what you said with a chapter in each node's metadata, use a retriever to get all of the nodes there and then pass into documentSummaryIndex
Yeah but while response generation all the nodes may not get used if the node length crosses token limit, that's what I'm thinking. So it may look half cooked response