Skip to content
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

Fix None type error when using Neo4jPropertyGraphStore #14957

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ class Neo4jPropertyGraphStore(PropertyGraphStore):
documents,
property_graph_store=graph_store,
)

# Close the neo4j connection explicitly.
graph_store.close()
```
"""

Expand Down Expand Up @@ -154,6 +157,9 @@ def __init__(
def client(self):
return self._driver

def close(self) -> None:
self._driver.close()

def refresh_schema(self) -> None:
"""Refresh the schema."""
node_query_results = self.structured_query(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-graph-stores-neo4j"
readme = "README.md"
version = "0.2.8"
version = "0.2.9"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
Expand Down
Loading