Skip to content

The agent engineering platform.

Hotfix RetrievalQA Docs: docs: Fix formatting (#21183)

Chris Germann3a8d1d8838d9
diff --git a/libs/langchain/langchain/chains/retrieval_qa/base.py b/libs/langchain/langchain/chains/retrieval_qa/base.py
index 6d030d6f11..99e3e6a291 100644
--- a/libs/langchain/langchain/chains/retrieval_qa/base.py
+++ b/libs/langchain/langchain/chains/retrieval_qa/base.py
@@ -216,8 +216,8 @@ class RetrievalQA(BaseRetrievalQA):
system_prompt = (
"Use the given context to answer the question. "
"If you don't know the answer, say you don't know. "
- "Use three sentence maximum and keep the answer concise."
- "\n\n{context}"
+ "Use three sentence maximum and keep the answer concise. "
+ "Context: {context}"
)
prompt = ChatPromptTemplate.from_messages(
[