Skip to content

Commit 0b93788

Browse files
Schema refactoring (#261)
* Added format_schema function * Added get_enhanced_schema function * Adds docstrings * More docstrings * Updated docs * Updated query_database * Updated query_database * Added enhanced schema unit tests * Various test fixes * Updated CHANGELOG * Refactored format_schema * Updated api.rst * Updated api.rst * Refactored get_enhanced_schema_cypher * Refactored enhance_schema * Bug fix * Fixed flaky tests * Makes helper functions private * Update src/neo4j_graphrag/schema.py Co-authored-by: Estelle Scifo <stellasia@users.noreply.github.com> * Formatting * Removed implicit query fallback execution from query_database * Updated variables in NODE_PROPERTIES_QUERY and REL_PROPERTIES_QUERY --------- Co-authored-by: Estelle Scifo <stellasia@users.noreply.github.com>
1 parent 9705735 commit 0b93788

File tree

6 files changed

+1447
-108
lines changed

6 files changed

+1447
-108
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@
88

99
- Ability to add event listener to get notifications about Pipeline progress.
1010
- Added py.typed so that mypy knows to use type annotations from the neo4j-graphrag package.
11+
- Support for creating enhanced schemas with detailed property statistics.
12+
- New utility functions for schema formatting and value sanitization.
13+
- Updated unit and integration tests to cover enhanced schema functionality.
1114

1215
### Changed
16+
1317
- Changed the default behaviour of `FixedSizeSplitter` to avoid words cut-off in the chunks whenever it is possible.
18+
- Refactored schema creation code to reduce duplication and improve maintainability.
1419

1520
### Fixed
1621
- Removed the `uuid` package from dependencies (not needed with Python 3).

docs/source/api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ Database Interaction
394394

395395
.. autofunction:: neo4j_graphrag.schema.get_schema
396396

397+
.. autofunction:: neo4j_graphrag.schema.format_schema
398+
397399

398400
******
399401
Errors

0 commit comments

Comments
 (0)