In step 1 the ref_doc_info is recovered form self.docstore.get_ref_doc_info(ref_doc_id). In my case (Can some one explain me why) each document has 2 nodes, but only one is used for the document summary so only one is in the self._index_sturct.node_id_to_summary_id dictionary