diff --git a/README.md b/README.md index 3c98389f..f6d252db 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,9 @@ from datetime import datetime # Initialize Graphiti graphiti = Graphiti("bolt://localhost:7687", "neo4j", "password") +# Initialize the graph database with graphiti's indices. This only needs to be done once. +graphiti.build_indices_and_constraints() + # Add episodes episodes = [ "Kamala Harris is the Attorney General of California. She was previously "