Skip to content

Commit

Permalink
Update graph_constructing.ipynb
Browse files Browse the repository at this point in the history
Used llm_transformer_tuple instance to create graph documents and assigned to graph_documents_filtered variable.
  • Loading branch information
prakashshan50 authored Dec 3, 2024
1 parent ab831ce commit 37a0508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/how_to/graph_constructing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
" allowed_nodes=[\"Person\", \"Country\", \"Organization\"],\n",
" allowed_relationships=allowed_relationships,\n",
")\n",
"llm_transformer_tuple = llm_transformer_filtered.convert_to_graph_documents(documents)\n",
"graph_documents_filtered = llm_transformer_tuple.convert_to_graph_documents(documents)\n",
"print(f\"Nodes:{graph_documents_filtered[0].nodes}\")\n",
"print(f\"Relationships:{graph_documents_filtered[0].relationships}\")"
]
Expand Down

0 comments on commit 37a0508

Please sign in to comment.