ZanSara
949b1b63b3
PromptHub integration in PromptNode
( #4879 )
...
* initial integration
* upgrade of prompthub
* fix get_prompt_template
* feedback
* add prompthub-py to dependencies
* tests
* mypy
* stray changes
* review feedback
* missing init
* fix test
* move logic in prompttemplate
* linting
* bugfixes
* fix unit tests
* fix cache
* simplify prompttemplate init
* remove unused function
* removing wrong params
* try remove all instances of prompt names
* more tests
* fix agent tests
* more tests
* fix tests
* pylint
* comma
* black
* fix test
* docstring
* review feedback
* review feedback
* fix mocks
* mypy
* fix mocks
* fix reference to missing templates
* feedback
* remove direct references to default template var
* tests
* Update haystack/nodes/prompt/prompt_node.py
Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
---------
Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
2023-05-23 15:22:58 +02:00
bogdankostic
5b2ef2afd6
Revert "refactor!: Deprecate name
param in PromptTemplate
and introduce template_name
instead ( #4810 )" ( #4834 )
...
This reverts commit f660f41c0615e6b3064ef3e321f1e5a295fafc1b.
2023-05-08 11:31:04 +02:00
bogdankostic
f660f41c06
refactor!: Deprecate name
param in PromptTemplate
and introduce template_name
instead ( #4810 )
...
* Deprecate name parameter
* Adapt existing tests and uses of PromptTemplate
* Move parameter `name` to end
* Adapt existing tests
* lg update
---------
Co-authored-by: Darja Fokina <daria.f93@gmail.com>
2023-05-08 10:12:29 +02:00
Vladimir Blagojevic
41b6e33f64
Enhance the error logging in PromptTemplate variable resolution ( #4730 )
...
* Enhance the error logging in PromptTemplate variable resolution
* Revert change Daria made
* Silvano PR feedback
2023-04-26 18:09:20 +02:00
tstadel
9cbe9e0949
fix: recursion of death while loading PromptTemplate from yaml ( #4691 )
...
* fix recursion of death when deserializing prompttemplate
* add test
* set api_key
* fix test
* add generic test
* work in feedback on tests
---------
Co-authored-by: bogdankostic <bogdankostic@web.de>
2023-04-26 13:56:51 +02:00
Silvano Cerza
1cc4c9c651
refactor: Refactor prompt node ( #4580 )
...
* Refactor prompt structure
* Refactor prompt tests structure
* Fix pylint
* Move TestPromptTemplateSyntax to test_prompt_template.py
2023-04-03 11:49:49 +02:00