PromptTemplate documentation mentions renamed prompt_text parameter #5179
Labels
P1
High priority, add to the next sprint
topic:promptnode
type:documentation
Improvements on the docs
PR #4879 renamed PromptTemplate input parameters but the documentation page of PromptNode shows an example with the old parameter name. We need to update the example.
We need to rename
prompt_text
toprompt
andname="lfqa",
can be removed completely in the example: https://docs.haystack.deepset.ai/v1.18-unstable/docs/prompt_node#long-form-question-answeringHere is the new implementation of PromptTemplate:
https://github.com/deepset-ai/haystack/blob/main/haystack/nodes/prompt/prompt_template.py#L367
https://docs.haystack.deepset.ai/v1.18-unstable/docs/prompt_node#prompttemplate-structure needs to be updated accordingly too: We need to rename
prompt_text
toprompt
andname="...",
can be removed completelyThe text was updated successfully, but these errors were encountered: