1. Learn
  2. /
  3. Courses
  4. /
  5. Graph RAG with LangChain and Neo4j

Connected

Exercise

Creating relationships

The Building Knowledge Graphs book has two authors, Jesus Barrasa and Jim Webber. In addition to the book node you already created, we've created two additional nodes defined as jesus and jim representing the two authors.

In this exercise, you'll create a WRITTEN_BY relationship between each author node and the book by looping over the author nodes.

Instructions

100 XP
  • Create a relationship of type "WRITTEN_BY" from the book node to each author node.