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 modeling bug #143

Merged
merged 2 commits into from
Oct 31, 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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Fixed

* Fix bug where patching previous valid nodes into an invalid data model would throw an error

### Changed

* Add comma separator for numbers in `GraphEDA` report
Expand Down
10 changes: 8 additions & 2 deletions neo4j_runway/llm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,14 @@ def _get_initial_data_model_response(
apply_neo4j_naming_conventions=apply_neo4j_naming_conventions,
)

if not hasattr(initial_data_model, "nodes") and hasattr(nodes, "nodes"):
initial_data_model.nodes = nodes.nodes
if (
not hasattr(initial_data_model, "nodes") or initial_data_model.nodes is None
) and hasattr(nodes, "nodes"):
try:
print(initial_data_model)
initial_data_model.nodes = nodes.nodes
except Exception as e:
pass

return initial_data_model

Expand Down