def get_nodes(self) -> List[NodeWithScore]:
        """Build list of nodes with score."""
        nodes = []
        for d in self.nodes_dict:
            node_dict = d["node"]
            try:
                node_cls = NODE_REGISTRY[node_dict["class_name"]]
            except KeyError:
                node_cls = NODE_REGISTRY["TextNode"]
            node = node_cls.model_validate(node_dict)
            nodes.append(NodeWithScore(node=node, score=d["score"]))
        return nodes
Build list of nodes with score.
llama-index-networks/llama_index/networks/schema/contributor.py