增加文本摘要提示词模版
This commit is contained in:
parent
4acc5e7ad9
commit
1654d5a120
|
|
@ -33,6 +33,12 @@ PROMPT_TEMPLATES = {
|
||||||
"py":
|
"py":
|
||||||
'你是一个聪明的代码助手,请你给我写出简单的py代码。 \n'
|
'你是一个聪明的代码助手,请你给我写出简单的py代码。 \n'
|
||||||
'{{ input }}',
|
'{{ input }}',
|
||||||
|
|
||||||
|
"summary":
|
||||||
|
'针对提供的文本内容进行阅读理解和摘要,回答应该包含一段对原文的简要概述,注意需使用列表的形式突出文本的关键信息和主要观点。请确保摘要既简洁明了又准确完整,以便让读者能够快速了解原文的核心内容。 请注意你需要给出:'
|
||||||
|
'【文本简介】简要概述 '
|
||||||
|
'【文本核心内容】使用列表形式罗列关键信息 \n'
|
||||||
|
'{{ input }}',
|
||||||
},
|
},
|
||||||
|
|
||||||
"knowledge_base_chat": {
|
"knowledge_base_chat": {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ from typing import List, Dict
|
||||||
chat_box = ChatBox(
|
chat_box = ChatBox(
|
||||||
assistant_avatar=os.path.join(
|
assistant_avatar=os.path.join(
|
||||||
"img",
|
"img",
|
||||||
"siji.jpg"#"chatchat_icon_blue_square_v2.png"
|
"chatchat_icon_blue_square_v2.png"#"chatchat_icon_blue_square_v2.png"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -104,7 +104,7 @@ def dialogue_page(api: ApiRequest, is_lite: bool = False):
|
||||||
|
|
||||||
if not chat_box.chat_inited:
|
if not chat_box.chat_inited:
|
||||||
st.toast(
|
st.toast(
|
||||||
f"欢迎使用 [`Langchain-Chatchat`](https://github.com/chatchat-space/Langchain-Chatchat) ! \n\n"
|
f"欢迎使用 [`思极GPT`]! \n\n"#f"欢迎使用 [`Langchain-Chatchat`](https://github.com/chatchat-space/Langchain-Chatchat) ! \n\n"
|
||||||
f"当前运行的模型`{default_model}`, 您可以开始提问了."
|
f"当前运行的模型`{default_model}`, 您可以开始提问了."
|
||||||
)
|
)
|
||||||
chat_box.init_session()
|
chat_box.init_session()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue