File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
docs-website/docs/pipeline-components/builders Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -407,6 +407,44 @@ res = pipe.run(
407407print (res)
408408```
409409
410+ ### In YAML
411+
412+ This is the YAML representation of the pipeline shown above. It dynamically constructs a prompt and generates an answer using a chat model.
413+
414+ ``` yaml
415+ components :
416+ llm :
417+ init_parameters :
418+ api_base_url : null
419+ api_key :
420+ env_vars :
421+ - OPENAI_API_KEY
422+ strict : true
423+ type : env_var
424+ generation_kwargs : {}
425+ http_client_kwargs : null
426+ max_retries : null
427+ model : gpt-4o-mini
428+ organization : null
429+ streaming_callback : null
430+ timeout : null
431+ tools : null
432+ tools_strict : false
433+ type : haystack.components.generators.chat.openai.OpenAIChatGenerator
434+ prompt_builder :
435+ init_parameters :
436+ required_variables : null
437+ template : null
438+ variables : null
439+ type : haystack.components.builders.chat_prompt_builder.ChatPromptBuilder
440+ connection_type_validation : true
441+ connections :
442+ - receiver : llm.messages
443+ sender : prompt_builder.prompt
444+ max_runs_per_component : 100
445+ metadata : {}
446+ ` ` `
447+
410448## Additional References
411449
412450🧑🍳 Cookbook: [Advanced Prompt Customization for Anthropic](https://haystack.deepset.ai/cookbook/prompt_customization_for_anthropic)
You can’t perform that action at this time.
0 commit comments