-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate that the component node names match the referenced nodes in the pipeline definition (yaml) #2338
Comments
Hey @ArzelaAscoIi, by looking at your YAML I don't see the issue you're describing. The I am way more interested about what |
Hi @ZanSara , sorry for confusion. The yaml is indeed valid. The case I am talking about can be tested with this script:
|
Ok actually a very quick inspection made me realize the issue here. This one is in between a naming issue and an unintuitive API design. The fact is that However, your issue has no solution at the moment. I will definitely proceed to extract the graph validation step in a separate API that can be invoked stand-alone on any YAML. Being able to fully validate YAML files before loading the pipelines is indeed quite important. |
I think I have a fix for this issue 🙂 Check out #2438 when you have time and let me know if it works for you! |
If we run
validate_config
andgenerate_code
(from haystack.pipelines.config
) on the following yaml which contains a typo in the FARMReader name,validate_config
will not find any errors.generate_code
will complain about a key error. Therefore,generate_code
can be used to verify that the variables used inside the pipeline definition actually exist in the yaml.It would be helpful to validate this within the
validate_config
method as well.The text was updated successfully, but these errors were encountered: