This workshop will cover the basics of knowledge graph (KG) construction using a multi-agent workflow.
- Python 3.12
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtInstall Neo4j Desktop:
- Download and install Neo4j Desktop from https://neo4j.com/download-center/
- Open Neo4j Desktop and create a new instance (a graph database instance)
- remember to use the same password you set in the
.envfile!
- remember to use the same password you set in the
Install required plugins:
- install "APOC" for standard procedures and functions
- install "GenAI" for AI capabilities
Edit neo4j.conf (for older versions of Desktop):
dbms.security.procedures.unrestricted=apoc.*
dbms.security.procedures.allowlist=apoc.*,genai.*
Check the procedures are available:
SHOW PROCEDURES WHERE name CONTAINS "genai.vector"Sign-up for Neo4j Aura:
- Visit: http://console.neo4j.io
- Click the "Create instance" button on the "Instances" page
- Optional: name the instance
- Click "Create instance" on the bottom of the page
- Copy the password someplace safe (for use in a
.envfile later) - Click "Download and continue"
- Wait for the instance to be provisioned
cp .env.template .envMake two changes:
- Replace
NEO4J_PASSWORDwith the password for your database - Replace
OPENAI_API_KEYwith the OpenAI API key provided for the workshop - Replace
NEO4J_IMPORT_DIRwith the location of the data directory of the cloned repository