The post asks about the difference between SummaryIndex and DocumentSummaryIndex, and which one is best to use for creating a "decomposition structured summary" for a document. The comments explain that SummaryIndex (previously called ListIndex) does not keep a summary of nodes, while DocumentSummaryIndex keeps a summary of each document object and maps it to the related nodes. The community members suggest that for the given use case, DocumentSummaryIndex would be the better choice. However, one community member also mentions that a ListIndex/SummaryIndex could also work fine, though they are unsure about the meaning of "decomposition structured summary".
Can someone tell the difference between SummaryIndex and DocumentSummaryIndex? In general, if I need to create a decomposition structured summay for a document text, which Index is the best to use for this purpose ?
SummaryIndex was earlier called List index, It does not keep summary of any node, Based on the query, would fetch the nodes and would generate the response.
Whereas Document SummaryIndex would keep summary of each Document object created and will map the summary with each of the relatd node.
For your usecase, Document SummaryIndex would be best way to go.
Thank you for the information ππ½ I'm not sure I understand why in my case you think DocumentSummaryIndex would be better.. I'm not using many documents.. I got only one.. I need to extract a breakdown/decomposition from it.