nodes_to_documents#

langchain_community.graph_vectorstores.base.nodes_to_documents(nodes: Iterable[Node]) Iterator[Document][source]#

Deprecated since version 0.3.21: See https://datastax.github.io/graph-rag/guide/migration/#from-langchain-graphvectorstore for migration instructions. It will be removed in langchain-community==0.5.

Convert nodes to documents.

Parameters:

nodes (Iterable[Node]) – The nodes to convert to documents.

Returns:

The documents generated from the nodes.

Return type:

Iterator[Document]