fix credentials
This commit is contained in:
parent
0d2a9e9e17
commit
5d71059f6c
1 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from graphiti_core import Graphiti
|
from graphiti_core import Graphiti
|
||||||
|
|
@ -6,7 +7,10 @@ from graphiti_core.nodes import EpisodeType
|
||||||
|
|
||||||
async def build_graph_with_temporal_awareness(text_list):
|
async def build_graph_with_temporal_awareness(text_list):
|
||||||
|
|
||||||
graphiti = Graphiti("bolt://localhost:7687", "neo4j", "pleaseletmein")
|
url = os.getenv("GRAPH_DATABASE_URL")
|
||||||
|
password = os.getenv("GRAPH_DATABASE_PASSWORD")
|
||||||
|
graphiti = Graphiti(url, "neo4j", password)
|
||||||
|
|
||||||
await graphiti.build_indices_and_constraints()
|
await graphiti.build_indices_and_constraints()
|
||||||
print("Graph database initialized.")
|
print("Graph database initialized.")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue