mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 15:19:33 +00:00
fix conversational retrieval docs (#7245)
This commit is contained in:
parent
035ad33a5b
commit
c36f852846
@ -240,8 +240,8 @@ class ConversationalRetrievalChain(BaseConversationalRetrievalChain):
|
|||||||
# Should take `chat_history` and `question` as input variables.
|
# Should take `chat_history` and `question` as input variables.
|
||||||
template = (
|
template = (
|
||||||
"Combine the chat history and follow up question into "
|
"Combine the chat history and follow up question into "
|
||||||
"a standalone question.\n\nChat History: {chat_history}"
|
"a standalone question. Chat History: {chat_history}"
|
||||||
"\n\n{question}"
|
"Follow up question: {question}"
|
||||||
)
|
)
|
||||||
prompt = PromptTemplate.from_template(template)
|
prompt = PromptTemplate.from_template(template)
|
||||||
llm = OpenAI()
|
llm = OpenAI()
|
||||||
|
Loading…
Reference in New Issue
Block a user