main
HuangHai 3 weeks ago
parent ab851d5ec1
commit 85dae6a189

@ -62,7 +62,8 @@ async def rag(request: fastapi.Request):
# 查询的问题
query = data.get("query")
# 关闭参考资料
query = query + "\n 不要输出参考资料!"
query = query + "\n 1、不要输出参考资料"
query = query + "\n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到"
async def generate_response_stream(query: str):
try:

@ -2231,6 +2231,26 @@
"embedding_min": null,
"embedding_max": null,
"original_prompt": "小学数学中有哪些模型?\n 不要输出参考资料!"
},
"cef372244b52137466d4538968bdef8e": {
"return": "{\"high_level_keywords\": [\"\\u5fae\\u79ef\\u5206\", \"\\u57fa\\u672c\\u5b9a\\u7406\", \"\\u6570\\u5b66\\u5206\\u6790\"], \"low_level_keywords\": [\"\\u5bfc\\u6570\", \"\\u79ef\\u5206\", \"\\u725b\\u987f-\\u83b1\\u5e03\\u5c3c\\u5179\\u516c\\u5f0f\", \"\\u51fd\\u6570\", \"\\u9762\\u79ef\"]}",
"cache_type": "keywords",
"chunk_id": null,
"embedding": null,
"embedding_shape": null,
"embedding_min": null,
"embedding_max": null,
"original_prompt": "微积分的基本定理是什么?\n 不要输出参考资料!"
},
"7e5ce4bd3ec5160ecb223526b726b73d": {
"return": "{\"high_level_keywords\": [\"\\u5fae\\u79ef\\u5206\", \"\\u57fa\\u672c\\u5b9a\\u7406\", \"\\u6570\\u5b66\\u539f\\u7406\"], \"low_level_keywords\": [\"\\u5bfc\\u6570\", \"\\u79ef\\u5206\", \"\\u51fd\\u6570\", \"\\u5fae\\u5206\\u5b66\", \"\\u79ef\\u5206\\u5b66\"]}",
"cache_type": "keywords",
"chunk_id": null,
"embedding": null,
"embedding_shape": null,
"embedding_min": null,
"embedding_max": null,
"original_prompt": "微积分的基本定理是什么?\n 1、不要输出参考资料\n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到"
}
}
}

@ -76,17 +76,17 @@
background-color: #2196F3;
}
#saveWordBtn:hover {
background-color: #0b7dda;
}
.icon {
margin-right: 5px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.doc-links {
@ -96,18 +96,6 @@
align-items: center;
}
.doc-link {
padding: 8px 15px;
background-color: #e7f3fe;
border-radius: 4px;
color: #2196F3;
text-decoration: none;
transition: all 0.3s;
}
.doc-link:hover {
background-color: #d0e3fa;
}
.doc-checkboxes {
display: flex;
@ -200,14 +188,19 @@
<div class="examples">
<div class="example-category">
<h3>问题示例</h3>
<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>
</div>
</div>
<div class="example-category">
<h3>未收集问题示例</h3>
<div class="example-item" onclick="fillExample('微积分的基本定理是什么?')">微积分的基本定理是什么?</div>
<div class="example-item" onclick="fillExample('线性代数在AI中的应用')">线性代数在AI中的应用</div>
</div>

Loading…
Cancel
Save