Skip to content

Commit

Permalink
langchain[patch]: fix stuff documents chain api docs render (#16159)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Jan 18, 2024
1 parent eec3347 commit b9495da
Show file tree
Hide file tree
Showing 2 changed files with 352 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langchain/langchain/chains/combine_documents/stuff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading

0 comments on commit b9495da

Please sign in to comment.