main
HuangHai 2 weeks ago
parent 85dae6a189
commit 708048a2c0

@ -64,6 +64,7 @@ async def rag(request: fastapi.Request):
# 关闭参考资料
query = query + "\n 1、不要输出参考资料"
query = query + "\n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到"
query = query + "\n 3、按照知识库内容进行回答可适当扩展但不要随意发散"
async def generate_response_stream(query: str):
try:

@ -2251,6 +2251,26 @@
"embedding_min": null,
"embedding_max": null,
"original_prompt": "微积分的基本定理是什么?\n 1、不要输出参考资料\n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到"
},
"dd1b7f53e9b28a94d97890915f554ffe": {
"return": "{\"high_level_keywords\": [\"\\u5c0f\\u5b66\\u6570\\u5b66\", \"\\u6a21\\u578b\", \"\\u6570\\u5b66\\u6559\\u5b66\"], \"low_level_keywords\": [\"\\u51e0\\u4f55\\u6a21\\u578b\", \"\\u4ee3\\u6570\\u6a21\\u578b\", \"\\u6570\\u5b57\\u6a21\\u578b\", \"\\u56fe\\u5f62\\u6a21\\u578b\", \"\\u5e94\\u7528\\u9898\\u6a21\\u578b\"]}",
"cache_type": "keywords",
"chunk_id": null,
"embedding": null,
"embedding_shape": null,
"embedding_min": null,
"embedding_max": null,
"original_prompt": "小学数学中有哪些模型?\n 1、不要输出参考资料\n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到"
},
"a11bdf6a9714f6d5fe11a734924ed67d": {
"return": "{\"high_level_keywords\": [\"\\u6559\\u5b66\\u8bbe\\u8ba1\", \"\\u51e0\\u4f55\\u6982\\u5ff5\", \"\\u7a7a\\u95f4\\u8ba4\\u77e5\", \"\\u6570\\u5b66\\u6559\\u80b2\"], \"low_level_keywords\": [\"\\u70b9\", \"\\u7ebf\", \"\\u9762\", \"\\u4f53\", \"\\u89d2\"]}",
"cache_type": "keywords",
"chunk_id": null,
"embedding": null,
"embedding_shape": null,
"embedding_min": null,
"embedding_max": null,
"original_prompt": "帮我写一下 如何理解点、线、面、体、角 的教学设计\n 1、不要输出参考资料\n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到\n 3、严格按照知识库内容进行回答不要随意发散"
}
}
}

@ -191,9 +191,8 @@
<h3>已收集问题示例</h3>
<div class="example-list">
<div class="example-item" onclick="fillExample('小学数学中有哪些模型?')">小学数学中有哪些模型?</div>
<div class="example-item" onclick="fillExample('帮我写一下 " 线
"的教学设计')">
帮我写一下 "如何理解点、线、面、体、角"的教学设计
<div class="example-item" onclick="fillExample('帮我写一下 如何理解点、线、面、体、角 的教学设计')">
帮我写一下 如何理解点、线、面、体、角 的教学设计
</div>
<div class="example-item" onclick="fillExample('苏轼的好朋友都有谁?')">苏轼的好朋友都有谁?</div>
<div class="example-item" onclick="fillExample('苏轼的家人都有谁?')">苏轼的家人都有谁</div>

Loading…
Cancel
Save