Skip to content

Commit a740640

Browse files
committed
Address comments
1 parent 88f65e5 commit a740640

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/neo4j_graphrag/experimental/pipeline/config/template_pipeline/simple_kg_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,9 @@ def get_run_params(self, user_input: dict[str, Any]) -> dict[str, Any]:
340340
text = user_input.get("text")
341341
file_path = user_input.get("file_path")
342342
if text is None and file_path is None:
343-
# use must provide either text or file_path or both
343+
# user must provide either text or file_path or both
344344
raise PipelineDefinitionError(
345-
"Use either 'text' (when from_pdf=False) or 'file_path' (when from_pdf=True) argument."
345+
"At least one of `text` (when from_pdf=False) or 'file_path' (when from_pdf=True) argument must be provided."
346346
)
347347
run_params: dict[str, dict[str, Any]] = defaultdict(dict)
348348
if self.lexical_graph_config:

0 commit comments

Comments
 (0)