Skip to content
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

PromptBuilder produces confusing error messages in case of Jinja2 syntax error #5913

Open
ZanSara opened this issue Sep 28, 2023 · 0 comments
Labels
2.x Related to Haystack v2.0 P3 Low priority, leave it in the backlog

Comments

@ZanSara
Copy link
Contributor

ZanSara commented Sep 28, 2023

In case of syntax errors in the functions invoked into Jinja blocks, PromptBuilder mistakes them for missing variables and the pipeline fails with a very misleading error.

Example

Try adding something like the following in a template:

{% if len(question) %}
@Timoeller Timoeller added the P3 Low priority, leave it in the backlog label Oct 12, 2023
@masci masci added the 2.x Related to Haystack v2.0 label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to Haystack v2.0 P3 Low priority, leave it in the backlog
Projects
None yet
Development

No branches or pull requests

3 participants