Skip to content

The agent engineering platform.

Fix typo in stuff_prompt's system_template (#12063)

Johnny Oshikaba20c14e28be
diff --git a/libs/langchain/langchain/chains/question_answering/stuff_prompt.py b/libs/langchain/langchain/chains/question_answering/stuff_prompt.py
index 856907f63e..982ccc35d2 100644
--- a/libs/langchain/langchain/chains/question_answering/stuff_prompt.py
+++ b/libs/langchain/langchain/chains/question_answering/stuff_prompt.py
@@ -17,7 +17,7 @@ PROMPT = PromptTemplate(
template=prompt_template, input_variables=["context", "question"]
)
-system_template = """Use the following pieces of context to answer the users question.
+system_template = """Use the following pieces of context to answer the user's question.
If you don't know the answer, just say that you don't know, don't try to make up an answer.
----------------
{context}"""