Skip to content

Conversation

@stellasia
Copy link
Contributor

@stellasia stellasia commented Nov 22, 2024

Description

Fix bug reported in #214

In addition:

  • Add neo4j_database parameter where it was missing (Text2CypherRetriever and Neo4jChunkReader)
  • Update all examples to use the recommended way to set the db (ie not using the driver's database parameter which is undocumented)
  • Expose the neo4j_database parameter in SimpleKGPipeline since this is the only way to configure it properly.

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Documentation update
  • Project configuration change

Complexity

Complexity: Low

How Has This Been Tested?

  • Unit tests
  • E2E tests
  • Manual tests

Checklist

The following requirements should have been met (depending on the changes in the branch):

  • Documentation has been updated
  • Unit tests have been updated
  • E2E tests have been updated
  • Examples have been updated
  • New files have copyright header
  • CLA (https://neo4j.com/developer/cla/) has been signed
  • CHANGELOG.md updated if appropriate

…into fix/writer-database

# Conflicts:
#	CHANGELOG.md
@stellasia stellasia marked this pull request as ready for review November 22, 2024 10:37
@stellasia stellasia requested a review from a team as a code owner November 22, 2024 10:37
@stellasia stellasia changed the title Fix/writer database Use the neo4j_database parameter everywhere Nov 22, 2024
Copy link
Contributor

@alexthomas93 alexthomas93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just had a small comment about the changelog

@stellasia stellasia merged commit 4d49525 into neo4j:main Nov 22, 2024
7 checks passed
willtai pushed a commit to willtai/neo4j-genai-python that referenced this pull request Dec 9, 2024
* Use self.neo4j_database for all queries in Neo4jWriter

* Make sure all execute_query can be run against a custom database

* Update CHANGELOG

* Update docstring + update examples not to use undocumented feature for neo4j driver

* Expose neo4j_database in SimpleKGBuilder

* Update CHANGELOG

* Simplify changelog
@stellasia stellasia deleted the fix/writer-database branch December 11, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants