doc: change comment with correct name (#2580)

In this comment, it should be **ConversationalRetrievalChain** instead
of **ChatVectorDBChain**
This commit is contained in:
Roy Xue 2023-04-08 23:31:33 +08:00 committed by GitHub
parent f7f118e021
commit f5afb60116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -466,7 +466,7 @@
"from langchain.chains.chat_index.prompts import CONDENSE_QUESTION_PROMPT, QA_PROMPT\n", "from langchain.chains.chat_index.prompts import CONDENSE_QUESTION_PROMPT, QA_PROMPT\n",
"from langchain.chains.question_answering import load_qa_chain\n", "from langchain.chains.question_answering import load_qa_chain\n",
"\n", "\n",
"# Construct a ChatVectorDBChain with a streaming llm for combine docs\n", "# Construct a ConversationalRetrievalChain with a streaming llm for combine docs\n",
"# and a separate, non-streaming llm for question generation\n", "# and a separate, non-streaming llm for question generation\n",
"llm = OpenAI(temperature=0)\n", "llm = OpenAI(temperature=0)\n",
"streaming_llm = OpenAI(streaming=True, callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]), verbose=True, temperature=0)\n", "streaming_llm = OpenAI(streaming=True, callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]), verbose=True, temperature=0)\n",