Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix graphRAG notebook triplet extraction template #17383

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs/examples/cookbooks/GraphRAG_v1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@
"- entity_name: Name of the entity, capitalized\n",
"- entity_type: Type of the entity\n",
"- entity_description: Comprehensive description of the entity's attributes and activities\n",
"Format each entity as (\"entity\"$$$$<entity_name>$$$$<entity_type>$$$$<entity_description>)\n",
"Format each entity as (\"entity\"$$$$\"<entity_name>\"$$$$\"<entity_type>\"$$$$\"<entity_description>\")\n",
"\n",
"2. From the entities identified in step 1, identify all pairs of (source_entity, target_entity) that are *clearly related* to each other.\n",
"For each pair of related entities, extract the following information:\n",
Expand All @@ -1005,7 +1005,7 @@
"- relation: relationship between source_entity and target_entity\n",
"- relationship_description: explanation as to why you think the source entity and the target entity are related to each other\n",
"\n",
"Format each relationship as (\"relationship\"$$$$<source_entity>$$$$<target_entity>$$$$<relation>$$$$<relationship_description>)\n",
"Format each relationship as (\"relationship\"$$$$\"<source_entity>\"$$$$\"<target_entity>\"$$$$\"<relation>\"$$$$\"<relationship_description>\")\n",
"\n",
"3. When finished, output.\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/examples/cookbooks/GraphRAG_v2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@
"- entity_name: Name of the entity, capitalized\n",
"- entity_type: Type of the entity\n",
"- entity_description: Comprehensive description of the entity's attributes and activities\n",
"Format each entity as (\"entity\"$$$$<entity_name>$$$$<entity_type>$$$$<entity_description>)\n",
"Format each entity as (\"entity\"$$$$\"<entity_name>\"$$$$\"<entity_type>\"$$$$\"<entity_description>\")\n",
"\n",
"2. From the entities identified in step 1, identify all pairs of (source_entity, target_entity) that are *clearly related* to each other.\n",
"For each pair of related entities, extract the following information:\n",
Expand All @@ -787,7 +787,7 @@
"- relation: relationship between source_entity and target_entity\n",
"- relationship_description: explanation as to why you think the source entity and the target entity are related to each other\n",
"\n",
"Format each relationship as (\"relationship\"$$$$<source_entity>$$$$<target_entity>$$$$<relation>$$$$<relationship_description>)\n",
"Format each relationship as (\"relationship\"$$$$\"<source_entity>\"$$$$\"<target_entity>\"$$$$\"<relation>\"$$$$\"<relationship_description>\")\n",
"\n",
"3. When finished, output.\n",
"\n",
Expand Down
Loading