langchain qa base

This commit is contained in:
csunny
2023-05-07 14:47:15 +08:00
parent 63586fc6a3
commit 3c40659527
5 changed files with 66 additions and 8 deletions

View File

@@ -146,6 +146,16 @@ conv_vicuna_v1 = Conversation(
sep2="</s>",
)
conv_qk_prompt_template = """ 基于以下已知的信息, 专业、详细的回答用户的问题。
如果无法从提供的恶内容中获取答案, 请说: "知识库中提供的内容不足以回答此问题", 但是你可以给出一些与问题相关答案的建议:
已知内容:
{context}
问题:
{question}
"""
default_conversation = conv_one_shot
conv_templates = {