Skip to content

Commit 0932e48

Browse files
authored
Minor fixes in README and documentation (#136)
* Minor fixes in README and documentation * Renamed landing page to Introduction on toctree * Rename possible_schema to potential_schema * Changed examples/pipeline/schema.py to async * Update CHANGELOG
1 parent 66231f8 commit 0932e48

File tree

5 files changed

+123
-50
lines changed

5 files changed

+123
-50
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# @neo4j/neo4j-graphrag-python
22

33
## Next
4+
### Changed
5+
- Updated documentation links in README.
6+
- Renamed deprecated package references in documentation.
7+
8+
### Added
9+
- Introduction page to the documentation content tree.
410

511
### Added
612
- Introduced a new Vertex AI embeddings class for generating text embeddings using Vertex AI.
@@ -9,6 +15,9 @@
915

1016
## 0.6.2
1117

18+
### Fixed
19+
- Moved pygraphviz to optional dependencies under [tool.poetry.extras] in pyproject.toml to resolve an issue where pip install neo4j-graphrag incorrectly required pygraphviz as a mandatory dependency.
20+
1221
## 0.6.1
1322

1423
### Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The purpose of this package is to provide a first party package to developers,
66
where Neo4j can guarantee long term commitment and maintenance as well as being
77
fast to ship new features and high performing patterns and methods.
88

9-
Documentation: https://neo4j.com/docs/neo4j-genai-python/
9+
Documentation: https://neo4j.com/docs/neo4j-graphrag-python/
1010

1111
Python versions supported:
1212

docs/source/index.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@
66
Neo4j GraphRAG for Python
77
=========================
88

9-
This repository contains the official Neo4j GraphRAG features for Python.
9+
This package contains the official Neo4j GraphRAG features for Python.
1010

1111
The purpose of this package is to provide a first party package to developers,
1212
where Neo4j can guarantee long term commitment and maintenance as well as being
1313
fast to ship new features and high performing patterns and methods.
1414

15+
⚠️ This package is a renamed continuation of `neo4j-genai`.
16+
The package `neo4j-genai` is deprecated and will no longer be maintained.
17+
We encourage all users to migrate to this new package to continue receiving updates and support.
18+
1519
Neo4j versions supported:
1620

1721
* Neo4j >=5.18.1
@@ -41,6 +45,7 @@ Topics
4145
:caption: Contents:
4246
:hidden:
4347

48+
Introduction <self>
4449
user_guide_rag.rst
4550
user_guide_kg_builder.rst
4651
user_guide_pipeline.rst

examples/pipeline/schema.py

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
from neo4j_graphrag.experimental.components.schema import (
16+
SchemaBuilder,
17+
SchemaEntity,
18+
SchemaProperty,
19+
SchemaRelation,
20+
)
21+
22+
23+
async def main() -> None:
24+
schema_builder = SchemaBuilder()
25+
26+
await schema_builder.run(
27+
entities=[
28+
SchemaEntity(
29+
label="Person",
30+
properties=[
31+
SchemaProperty(name="name", type="STRING"),
32+
SchemaProperty(name="place_of_birth", type="STRING"),
33+
SchemaProperty(name="date_of_birth", type="DATE"),
34+
],
35+
),
36+
SchemaEntity(
37+
label="Organization",
38+
properties=[
39+
SchemaProperty(name="name", type="STRING"),
40+
SchemaProperty(name="country", type="STRING"),
41+
],
42+
),
43+
],
44+
relations=[
45+
SchemaRelation(
46+
label="WORKED_ON",
47+
),
48+
SchemaRelation(
49+
label="WORKED_FOR",
50+
),
51+
],
52+
potential_schema=[
53+
("Person", "WORKED_ON", "Field"),
54+
("Person", "WORKED_FOR", "Organization"),
55+
],
56+
)

poetry.lock

Lines changed: 51 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)