langchain.chains.question_answering.stuff_prompt
https://github.com/hwchase17/langchain/blob/v0.0.228/langchain/chains/question_answering/stuff_prompt.py
PROMPT_SELECTOR
langchain.chains.prompt_selector.ConditionalPromptSelector
default_prompt
PromptTemplate
https://github.com/hwchase17/langchain/blob/v0.0.228/langchain/chains/question_answering/stuff_prompt.py#L10-L15
is_chat_modelならCHAT_PROMPT
CHAT_PROMPT = ChatPromptTemplate.from_messages(messages) L28
system_template
https://github.com/hwchase17/langchain/blob/v0.0.228/langchain/chains/question_answering/stuff_prompt.py#L20-L23
(verboseで見るやつ!!)
Use the following pieces of context to answer the users question.
「ユーザの質問に答えるのに以下のコンテキストを使ってください」
If you don't know the answer, just say that you don't know, don't try to make up an answer.
「答えがわからない場合は、単にわかりませんと言ってくだだい。答えを作り上げようとしないでください」
human message