mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-23 17:00:41 +00:00

* Add DynamicPromptBuilder * Improve pydocs, add unit tests * Add release note * Make expected_runtime_variables optional * Add pydocs usage example * Add more pydocs * Remove test markers * Update type in unit test * Update after canals upgrade * add to api ref * docstrings updates * Update test/preview/components/builders/test_dynamic_prompt_builder.py Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> * Update haystack/preview/components/builders/dynamic_prompt_builder.py Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> * Deparametrize init test * Rename expected_runtime_variables to runtime_variables * Rephrase docstring so meaning is clearer --------- Co-authored-by: Darja Fokina <daria.f93@gmail.com> Co-authored-by: Daria Fokina <daria.fokina@deepset.ai> Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> Co-authored-by: Silvano Cerza <silvanocerza@gmail.com>
6 lines
229 B
YAML
6 lines
229 B
YAML
---
|
|
preview:
|
|
- |
|
|
Add `DynamicPromptBuilder` to dynamically generate prompts from either a list of ChatMessage instances or a string
|
|
template, leveraging Jinja2 templating for flexible and efficient prompt construction.
|