Logo
Explore Help
Register Sign In
yujunjun/haystack
1
0
Fork 0
You've already forked haystack
mirror of https://github.com/deepset-ai/haystack.git synced 2025-07-25 01:40:22 +00:00
Code Issues Packages Projects Releases Wiki Activity
haystack/releasenotes/notes/add-dynamic-prompt-builder-e61c4b11405b8d80.yaml

6 lines
229 B
YAML
Raw Normal View History

feat: Add DynamicPromptBuilder to Haystack 2.x (#6328) * 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>
2023-11-23 11:41:57 +01:00
---
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.
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 1736ms Template: 93ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API