From 34b7d1edb09729f15f73955b6c0892e2f8c9c033 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 17 May 2023 18:51:21 +0200 Subject: [PATCH] Small fix to PromptTemplate API docs (#4870) --- haystack/nodes/prompt/prompt_template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haystack/nodes/prompt/prompt_template.py b/haystack/nodes/prompt/prompt_template.py index c180135641..fd80b5fb2c 100644 --- a/haystack/nodes/prompt/prompt_template.py +++ b/haystack/nodes/prompt/prompt_template.py @@ -164,8 +164,8 @@ class PromptTemplate(BasePromptTemplate, ABC): ```python PromptTemplate(name="sentiment-analysis", - prompt_text="Give a sentiment for this context. Answer with positive, negative - or neutral. Context: {documents}; Answer:") + prompt_text="Give a sentiment for this context. Answer with positive, negative" + "or neutral. Context: {documents}; Answer:") ``` Optionally, you can declare prompt parameters using f-string syntax in the PromptTemplate. Prompt parameters are input parameters that need to be filled in