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:
-
Open the LLM Graph Builder
-
Connect to your Neo4j sandbox
- Protocol
-
bolt
- URI
-
{sandbox-host}:{sandbox-boltPort}
- Database
-
neo4j
- Username
-
{sandbox-username}
- Password
-
{sandbox-password}
-
Upload your documents
-
Configure the schema (as appropriate)
-
Generate the graph
Python
You will need to:
-
Create a copy of the
create_kg.py
file -
Add your documents to the repository
-
Modify the code to use your data
-
Configure the
LLMGraphTransformer
(as appropriate) -
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.