Update README.md - init (#64)

* Update README.md - init

* Update README.md
This commit is contained in:
Daniel Chalef 2024-08-27 15:42:09 -07:00 committed by GitHub
parent 95eeaa575c
commit d9f07049bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 "