-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting neo4j url connection error while docker compose #4
Comments
Yeah, localhost will not work inside docker. Use NEO4J_URI=neo4j://neo4j:7687 if you are using the provided neo4j in docker |
ok - i have made the change above and re-ran docker compose and got the following output: |
Just do
and then restart it with
|
Here is the error:
llm-movieagent-api-1 | File "/code/packages/neo4j-semantic-layer/neo4j_semantic_layer/utils.py", line 5, in
llm-movieagent-api-1 | graph = Neo4jGraph()
llm-movieagent-api-1 | ^^^^^^^^^^^^
llm-movieagent-api-1 | File "/usr/local/lib/python3.11/site-packages/langchain_community/graphs/neo4j_graph.py", line 207, in init
llm-movieagent-api-1 | raise ValueError(
llm-movieagent-api-1 | ValueError: Could not connect to Neo4j database. Please ensure that the url is correct
my .env is like:
NEO4J_URI=neo4j://localhost:7687
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=****
OPENAI_API_KEY=sk-***
The text was updated successfully, but these errors were encountered: