Skip to content

Commit c880342

Browse files
Apply suggestions from code review
Co-authored-by: Katarina Supe <61758502+katarinasupe@users.noreply.github.com>
1 parent 73aa5e5 commit c880342

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

memgraph-graphRAG/graphRAG.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"source": [
101101
"## Enrich knowledge graph with the embeddings \n",
102102
"\n",
103-
"Since in GraphRAG you are not writing actual Cypher queries, rather you are\n",
103+
"In GraphRAG, you are not writing actual Cypher queries, but you are\n",
104104
"asking the questions about your domain knowledge graph in plain English. To\n",
105105
"retrieve relevant parts of the knowledge graph, you'll need a way to encode\n",
106106
"semantic meaning into the graph. \n",
@@ -167,7 +167,7 @@
167167
"\n",
168168
"Asking the question `Who is Viserys Targaryen?` will yield a very similar\n",
169169
"embedding, allowing you to locate that node in the graph. However, if you ask a\n",
170-
"longer question like, `To whom was Viserys Targaryen Loyal in seasone 1 of Game\n",
170+
"longer question like, `To whom was Viserys Targaryen Loyal in season 1 of Game\n",
171171
"of Thrones?`, there is a chance that this question might not locate the `Viserys\n",
172172
"Targaryen` node in the graph due to its length and complexity. \n",
173173
"\n",
@@ -360,7 +360,7 @@
360360
"cell_type": "markdown",
361361
"metadata": {},
362362
"source": [
363-
"## Running the graph RAG\n",
363+
"## Running the graphRAG\n",
364364
"\n",
365365
"Now, it all comes together in the `main` function: \n",
366366
"\n",
@@ -379,7 +379,7 @@
379379
"metadata": {},
380380
"outputs": [],
381381
"source": [
382-
"## Getting a Graph RAG answer \n",
382+
"## Getting a GraphRAG answer \n",
383383
"\n",
384384
"def main():\n",
385385
"\n",
@@ -541,8 +541,8 @@
541541
"source": [
542542
"The goal of extracting entities from the text is to preprocess the data before\n",
543543
"sending it to the GPT model, ensuring more accurate and relevant results. By\n",
544-
"using SpaCy, we can identify key entities such as characters, locations and\n",
545-
"other entities for better understanding of the context of the text.\n",
544+
"using SpaCy, we can identify key entities such as characters and locations\n",
545+
"for a better understanding of the context of the text.\n",
546546
"\n",
547547
"This is particularly useful because SpaCy is specifically trained to recognize\n",
548548
"linguistic patterns and relationships in text, which helps to isolate and\n",
@@ -613,7 +613,7 @@
613613
"prompt, along with clear instructions on how to extract nodes and relationships\n",
614614
"from those entities. These instructions will guide the model in identifying key\n",
615615
"connections between the entities, which can then be used to build a knowledge\n",
616-
"graph. In this example, we will be using a gpt-4 model. "
616+
"graph. In this example, we will be using the GPT-4 model. "
617617
]
618618
},
619619
{

0 commit comments

Comments
 (0)