Skip to content

Commit 75138c1

Browse files
authored
Update Neo4jGenAiError and various remaining documentation references to GenAI (#134)
* Update Neo4jGenAiError and various remaining documentation references to GenAI * Revert documentation link in README
1 parent 05bcaec commit 75138c1

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

.github/workflows/ISSUE_TEMPLATE/bug.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Bug Report
3-
about: Report a bug in the Neo4j GenAI library
3+
about: Report a bug in the Neo4j GraphRAG library
44
labels: "bug"
55
---
66

.github/workflows/ISSUE_TEMPLATE/feature.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Feature Request
3-
about: Suggest an idea for the Neo4j GenAI library
3+
about: Suggest an idea for the Neo4j GraphRAG library
44
labels: "feature request"
55
---
66

README.md

+1-1
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-graphrag-python/
9+
Documentation: https://neo4j.com/docs/neo4j-genai-python/
1010

1111
Python versions supported:
1212

docs/source/api.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Errors
222222
******
223223

224224

225-
* :class:`neo4j_graphrag.exceptions.Neo4jGenAiError`
225+
* :class:`neo4j_graphrag.exceptions.Neo4jGraphRagError`
226226

227227
* :class:`neo4j_graphrag.exceptions.RetrieverInitializationError`
228228

@@ -255,10 +255,10 @@ Errors
255255
* :class:`neo4j_graphrag.experimental.pipeline.exceptions.PipelineStatusUpdateError`
256256

257257

258-
Neo4jGenAiError
259-
===============
258+
Neo4jGraphRagError
259+
==================
260260

261-
.. autoclass:: neo4j_graphrag.exceptions.Neo4jGenAiError
261+
.. autoclass:: neo4j_graphrag.exceptions.Neo4jGraphRagError
262262
:show-inheritance:
263263

264264

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
[tool.poetry]
1717
name = "neo4j-graphrag"
1818
version = "0.6.2"
19-
description = "Python package to allow easy integration to Neo4j's GenAI features"
19+
description = "Python package to allow easy integration to Neo4j's GraphRAG features"
2020
authors = ["Neo4j, Inc <[email protected]>"]
2121
license = "Apache License, Version 2.0"
2222
readme = "README.md"

src/neo4j_graphrag/exceptions.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -17,102 +17,102 @@
1717
from pydantic_core import ErrorDetails
1818

1919

20-
class Neo4jGenAiError(Exception):
20+
class Neo4jGraphRagError(Exception):
2121
"""Global exception used for the neo4j-graphrag package."""
2222

2323
pass
2424

2525

26-
class RetrieverInitializationError(Neo4jGenAiError):
26+
class RetrieverInitializationError(Neo4jGraphRagError):
2727
"""Exception raised when initialization of a retriever fails."""
2828

2929
def __init__(self, errors: list[ErrorDetails]) -> None:
3030
super().__init__(f"Initialization failed: {errors}")
3131
self.errors = errors
3232

3333

34-
class RagInitializationError(Neo4jGenAiError):
34+
class RagInitializationError(Neo4jGraphRagError):
3535
def __init__(self, errors: list[ErrorDetails]):
3636
super().__init__(f"Initialization failed: {errors}")
3737
self.errors = errors
3838

3939

40-
class PromptMissingInputError(Neo4jGenAiError):
40+
class PromptMissingInputError(Neo4jGraphRagError):
4141
"""Exception raised when a prompt required input is missing."""
4242

4343
pass
4444

4545

46-
class LLMGenerationError(Neo4jGenAiError):
46+
class LLMGenerationError(Neo4jGraphRagError):
4747
"""Exception raised when answer generation from LLM fails."""
4848

4949
pass
5050

5151

52-
class SearchValidationError(Neo4jGenAiError):
52+
class SearchValidationError(Neo4jGraphRagError):
5353
"""Exception raised for validation errors during search."""
5454

5555
def __init__(self, errors: list[ErrorDetails]) -> None:
5656
super().__init__(f"Search validation failed: {errors}")
5757
self.errors = errors
5858

5959

60-
class FilterValidationError(Neo4jGenAiError):
60+
class FilterValidationError(Neo4jGraphRagError):
6161
"""Exception raised when input validation for metadata filtering fails."""
6262

6363
pass
6464

6565

66-
class EmbeddingRequiredError(Neo4jGenAiError):
66+
class EmbeddingRequiredError(Neo4jGraphRagError):
6767
"""Exception raised when an embedding method is required but not provided."""
6868

6969
pass
7070

7171

72-
class InvalidRetrieverResultError(Neo4jGenAiError):
72+
class InvalidRetrieverResultError(Neo4jGraphRagError):
7373
"""Exception raised when the Retriever fails to return a result."""
7474

7575
pass
7676

7777

78-
class Neo4jIndexError(Neo4jGenAiError):
78+
class Neo4jIndexError(Neo4jGraphRagError):
7979
"""Exception raised when handling Neo4j index fails."""
8080

8181
pass
8282

8383

84-
class Neo4jInsertionError(Neo4jGenAiError):
84+
class Neo4jInsertionError(Neo4jGraphRagError):
8585
"""Exception raised when inserting data into the Neo4j database fails."""
8686

8787
pass
8888

8989

90-
class Neo4jVersionError(Neo4jGenAiError):
90+
class Neo4jVersionError(Neo4jGraphRagError):
9191
"""Exception raised when Neo4j version does not meet minimum requirements."""
9292

9393
def __init__(self) -> None:
9494
super().__init__("This package only supports Neo4j version 5.18.1 or greater")
9595

9696

97-
class Text2CypherRetrievalError(Neo4jGenAiError):
97+
class Text2CypherRetrievalError(Neo4jGraphRagError):
9898
"""Exception raised when text-to-cypher retrieval fails."""
9999

100100
pass
101101

102102

103-
class SchemaFetchError(Neo4jGenAiError):
103+
class SchemaFetchError(Neo4jGraphRagError):
104104
"""Exception raised when a Neo4jSchema cannot be fetched."""
105105

106106
pass
107107

108108

109-
class SchemaValidationError(Neo4jGenAiError):
109+
class SchemaValidationError(Neo4jGraphRagError):
110110
"""Custom exception for errors in schema configuration."""
111111

112112
pass
113113

114114

115-
class PdfLoaderError(Neo4jGenAiError):
115+
class PdfLoaderError(Neo4jGraphRagError):
116116
"""Custom exception for errors in PDF loader."""
117117

118118
pass

src/neo4j_graphrag/experimental/pipeline/exceptions.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
from neo4j_graphrag.exceptions import Neo4jGenAiError
15+
from neo4j_graphrag.exceptions import Neo4jGraphRagError
1616

1717

18-
class PipelineDefinitionError(Neo4jGenAiError):
18+
class PipelineDefinitionError(Neo4jGraphRagError):
1919
"""Raised when the pipeline graph is invalid"""
2020

2121
pass
2222

2323

24-
class PipelineMissingDependencyError(Neo4jGenAiError):
24+
class PipelineMissingDependencyError(Neo4jGraphRagError):
2525
"""Raised when a task is scheduled but its dependencies are not yet done"""
2626

2727
pass
2828

2929

30-
class PipelineStatusUpdateError(Neo4jGenAiError):
30+
class PipelineStatusUpdateError(Neo4jGraphRagError):
3131
"""Raises when trying an invalid change of state (e.g. DONE => DOING)"""
3232

3333
pass

0 commit comments

Comments
 (0)