Skip to content

Commit fcb126f

Browse files
committed
chore: split HierarchicalTextSplitter into companion PR neo4j#548
Remove hierarchical_splitter.py and its tests from this branch (now in PR neo4j#548). Update example script to reference the companion PR.
1 parent b433bc9 commit fcb126f

5 files changed

Lines changed: 5 additions & 1099 deletions

File tree

examples/customize/build_graph/components/spacy_kg_pipeline.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# Install: pip install 'neo4j-graphrag[nlp]'
22
# Then: python -m spacy download en_core_web_sm
3+
#
4+
# NOTE: HierarchicalTextSplitter is implemented in the companion PR #548.
5+
# Until that PR is merged, install it from the feat/hierarchical-splitter branch:
6+
# pip install git+https://github.com/neo4j/neo4j-graphrag-python@feat/hierarchical-splitter
37
"""End-to-end SpaCy knowledge-graph pipeline example.
48
59
Demonstrates how to wire four pipeline components together without an LLM:
610
711
PdfLoader
8-
→ HierarchicalTextSplitter
12+
→ HierarchicalTextSplitter (see PR #548)
913
→ SpacyEntityRelationExtractor
1014
→ Neo4jWriter
1115
Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +0,0 @@
1-
# Copyright (c) "Neo4j"
2-
# Neo4j Sweden AB [https://neo4j.com]
3-
# #
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
# #
8-
# https://www.apache.org/licenses/LICENSE-2.0
9-
# #
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
16-
try:
17-
from neo4j_graphrag.experimental.components.text_splitters.hierarchical_splitter import (
18-
HierarchicalTextSplitter,
19-
)
20-
21-
__all__ = ["HierarchicalTextSplitter"]
22-
except ImportError:
23-
pass

0 commit comments

Comments
 (0)