update conversational retrieval qa chain prompt

This commit is contained in:
Henry 2023-07-18 01:22:20 +01:00
parent 05e8e33d5a
commit 673cc029bd
1 changed files with 2 additions and 2 deletions

View File

@ -7,14 +7,14 @@ import { BaseChatMemory, BufferMemory, ChatMessageHistory } from 'langchain/memo
import { PromptTemplate } from 'langchain/prompts'
import { ConsoleCallbackHandler, CustomChainHandler } from '../../../src/handler'
const default_qa_template = `Use the following pieces of context to answer the question at the end, in its original language. If you don't know the answer, just say that you don't know in its original language, don't try to make up an answer.
const default_qa_template = `Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer.
{context}
Question: {question}
Helpful Answer:`
const qa_template = `Use the following pieces of context to answer the question at the end, in its original language.
const qa_template = `Use the following pieces of context to answer the question at the end.
{context}