mirror of
				https://github.com/deepset-ai/haystack.git
				synced 2025-11-04 03:39:31 +00:00 
			
		
		
		
	Fix inaccuracy in PromptBuilder docstring (#7503)
This commit is contained in:
		
							parent
							
								
									eff53a9131
								
							
						
					
					
						commit
						be77e85f43
					
				@ -9,7 +9,9 @@ from haystack import component, default_to_dict
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user