Skip to content

Commit

Permalink
Fix inaccuracy in PromptBuilder docstring (#7503)
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza authored Apr 8, 2024
1 parent eff53a9 commit be77e85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion haystack/components/builders/prompt_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
class PromptBuilder:
"""
PromptBuilder is a component that renders a prompt from a template string using Jinja2 templates.
The template variables found in the template string are used as input types for the component and are all required.
The template variables found in the template string are used as input types for the component and are all optional.
If a template variable is not provided as an input, it will be replaced with an empty string in the rendered prompt.
Usage example:
```python
Expand Down

0 comments on commit be77e85

Please sign in to comment.