Create your Knowledge Graph

In this optional challenge, you will use your own data to construct a knowledge graph.

You can use either the LLM Graph Builder or Python to build the graph.

LLM Graph Builder

You will need to:

  1. Open the LLM Graph Builder

  2. Connect to your Neo4j sandbox

    Protocol

    bolt

    URI

    {sandbox-host}:{sandbox-boltPort}

    Database

    neo4j

    Username

    {sandbox-username}

    Password

    {sandbox-password}

  3. Upload your documents

  4. Configure the schema (as appropriate)

  5. Generate the graph

Python

You will need to:

  1. Create a copy of the create_kg.py file

  2. Add your documents to the repository

  3. Modify the code to use your data

  4. Configure the LLMGraphTransformer (as appropriate)

  5. Run the script to generate the graph

When you are ready, move on to the next module.

Lesson Summary

In this optional challenge, you uploaded your own documents and built a knowledge graph.

In the next module, you will explore how to query a knowledge graph.