Skip to content

Commit

Permalink
Small fix to PromptTemplate API docs (#4870)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrl committed May 17, 2023
1 parent 9d52998 commit 34b7d1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haystack/nodes/prompt/prompt_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34b7d1e

Please sign in to comment.