You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# A node with the given name was in the schema, but something else is wrong with it.
# Probably it references unknown classes in its init parameters.
raisePipelineSchemaError(
f"Node of type {validation.instance['type']} found, but it failed validation. Possible causes:\n"
" - The node is missing some mandatory parameter\n"
" - Wrong indentation of some parameter in YAML\n"
"See the stacktrace for more information."
) fromvalidation
The actual error:
On instance['components'][0]:
{'name': 'Preprocessor',
'params': {'split_by': None},
'type': 'PreProcessor'}
Traceback (most recent call last):
File "/home/paperspace/repositories/smart-search/env/lib/python3.8/site-packages/haystack/pipelines/config.py", line 338, in validate_schema
Draft7Validator(schema).validate(instance=pipeline_config)
File "/home/paperspace/repositories/smart-search/env/lib/python3.8/site-packages/jsonschema/validators.py", line 304, in validate
raise error
jsonschema.exceptions.ValidationError: {'name': 'Preprocessor', 'type': 'PreProcessor', 'params': {'split_by': None}} is not valid under any of the given schemas
On instance['components'][0]:
{'name': 'Preprocessor',
'params': {'split_by': None},
'type': 'PreProcessor'}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "haystack_bug_test.py", line 12, in<module>
pipeline = Pipeline.load_from_config(config, pipeline_name="indexing")
File "/home/paperspace/repositories/smart-search/env/lib/python3.8/site-packages/haystack/pipelines/base.py", line 1913, in load_from_config
validate_config(pipeline_config, strict_version_check=strict_version_check)
File "/home/paperspace/repositories/smart-search/env/lib/python3.8/site-packages/haystack/pipelines/config.py", line 259, in validate_config
validate_schema(
File "/home/paperspace/repositories/smart-search/env/lib/python3.8/site-packages/haystack/pipelines/config.py", line 366, in validate_schema
raise PipelineSchemaError(
haystack.errors.PipelineSchemaError: Node of type PreProcessor found, but it failed validation. Possible causes:
- The node is missing some mandatory parameter
- Wrong indentation of some parameter in YAML
See the stacktrace for more information.
The text was updated successfully, but these errors were encountered:
Hi @ugm2 here is a PR that should fix the issue: #3389 If you want you can try it out by checking out the branch of the PR even before we merge it into main.
The issue
When trying to load the PreProcessor node with
split_by: None
from config fails.Reproduce the issue
To reproduce the issue, execute this script with the latest Haystack version and python 3.8:
The error
Where it fails:
haystack/haystack/pipelines/config.py
Lines 307 to 331 in 7290196
The actual error:
The text was updated successfully, but these errors were encountered: