def build_slide_nodes_from_documents(
        self,
        documents: Sequence[Document],
    ) -> List[BaseNode]:
        """
        Build nodes enriched with localized context using a sliding window approach.
        This is the primary function of the class.
        """
        all_nodes: List[BaseNode] = []
        for document in documents:
            # Split into sentences and base chunks
            doctext = document.get_content()
            sentences = self.sentence_splitter(doctext)
            chunks = self.create_individual_chunks(sentences)

            # build localized splits
            splits = self.build_localised_splits(chunks)
            texts = [split["text"] for split in splits]
            contexts = [split["context"] for split in splits]

            # build and annotate nodes
            nodes = build_nodes_from_splits(
                text_splits=texts, document=document, id_func=self.id_func
            )

            nodes = self.post_process_nodes(nodes, contexts)
            all_nodes.extend(nodes)

        return all_nodes

        Build nodes enriched with localized context using a sliding window approach.
        This is the primary function of the class.
        
llama-index-integrations/node_parser/llama-index-node-parser-slide/llama_index/node_parser/slide/base.py