langchain[patch]: fix stuff documents chain api docs render (#16159)

This commit is contained in:
Erick Friis
2024-01-18 14:07:44 -08:00
committed by GitHub
parent eec3347939
commit b9495da92d
2 changed files with 352 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ def create_stuff_documents_chain(
from langchain.chains.combine_documents import create_stuff_documents_chain
prompt = ChatPromptTemplate.from_messages(
[("system", "What are everyone's favorite colors:\n\n{context}")]
[("system", "What are everyone's favorite colors:\\n\\n{context}")]
)
llm = ChatOpenAI(model_name="gpt-3.5-turbo")
chain = create_stuff_documents_chain(llm, prompt)