fix conversational retrieval docs (#7245)

This commit is contained in:
Harrison Chase 2023-07-05 21:51:33 -04:00 committed by GitHub
parent 035ad33a5b
commit c36f852846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()