main
HuangHai 2 weeks ago
parent 7cd125da44
commit 93f37f5198

@ -64,7 +64,7 @@ async def rag(request: fastapi.Request):
# 关闭参考资料
query = query + "\n 1、不要输出参考资料 或者 References "
query = query + "\n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到"
query = query + "\n 3、严格按照知识库内容进行回答不要进行推理知识库中条目清晰体现的才算答案。"
#query = query + "\n 3、严格按照知识库内容进行回答不要进行推理知识库中条目清晰体现的才算答案。"
async def generate_response_stream(query: str):
try:

@ -420,5 +420,27 @@
"embedding_max": null,
"original_prompt": "You are a helpful assistant responsible for generating a comprehensive summary of the data provided below.\nGiven one or two entities, and a list of descriptions, all related to the same entity or group of entities.\nPlease concatenate all of these into a single, comprehensive description. Make sure to include information collected from all the descriptions.\nIf the provided descriptions are contradictory, please resolve the contradictions and provide a single, coherent summary.\nMake sure it is written in third person, and include the entity names so we the have full context.\nUse English as output language.\n\n#######\n---Data---\nEntities: (欧阳修, 苏轼)\nDescription List: ['欧阳修作为主考官赏识苏轼的文章才华,预言其未来成就,并大力提携其名声。', \"苏轼与欧阳修并称'欧苏',均是唐宋八大家成员。\", '苏轼早年得到欧阳修赏识并推荐,在科举考试中差点被列为第一,两人有师生关系.', '苏轼继承了欧阳修的文学精神,并在散文、诗歌等方面发扬光大,形成独特风格。', '苏轼继承并超越了欧阳修等前人的词学成就,为其词学改革提供了历史基础。', '苏轼继承欧阳修的文学理念,并在此基础上发展出更具艺术性的散文与词风。']\n#######\nOutput:\n"
}
},
"hybrid": {
"71b83653df36350ef401ca5ba7d132cf": {
"return": "{\"high_level_keywords\": [\"\\u82cf\\u8f7c\", \"\\u597d\\u53cb\", \"\\u4eba\\u9645\\u5173\\u7cfb\"], \"low_level_keywords\": [\"\\u9ec4\\u5ead\\u575a\", \"\\u79e6\\u89c2\", \"\\u7c73\\u82be\", \"\\u4f5b\\u5370\", \"\\u6587\\u4eba\\u4ea4\\u6e38\"]}",
"cache_type": "keywords",
"chunk_id": null,
"embedding": null,
"embedding_shape": null,
"embedding_min": null,
"embedding_max": null,
"original_prompt": "苏轼的好朋友都有谁?\n 1、不要输出参考资料 或者 References \n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到"
},
"18ea53bea404e407a93769b2a35bb1e6": {
"return": "{\"high_level_keywords\": [\"\\u82cf\\u8f7c\", \"\\u8bd7\\u53e5\", \"\\u6587\\u5b66\\u521b\\u4f5c\"], \"low_level_keywords\": [\"\\u6c34\\u8c03\\u6b4c\\u5934\", \"\\u5ff5\\u5974\\u5a07\", \"\\u8d64\\u58c1\\u6000\\u53e4\", \"\\u660e\\u6708\\u51e0\\u65f6\\u6709\", \"\\u5927\\u6c5f\\u4e1c\\u53bb\"]}",
"cache_type": "keywords",
"chunk_id": null,
"embedding": null,
"embedding_shape": null,
"embedding_min": null,
"embedding_max": null,
"original_prompt": "苏轼有哪些有名的诗句?\n 1、不要输出参考资料 或者 References \n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到"
}
}
}

@ -2311,6 +2311,26 @@
"embedding_min": null,
"embedding_max": null,
"original_prompt": "小学数学中有哪些常见模型?\n 1、不要输出参考资料 或者 References \n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到\n 3、严格按照知识库内容进行回答不要进行推理知识库中条目清晰体现的才算答案。"
},
"1483fe9cdb027119c0758c80c9a9475b": {
"return": "{\"high_level_keywords\": [\"\\u5c0f\\u5b66\\u6570\\u5b66\", \"\\u5e38\\u89c1\\u6a21\\u578b\", \"\\u6570\\u5b66\\u6559\\u5b66\"], \"low_level_keywords\": [\"\\u52a0\\u51cf\\u6cd5\\u6a21\\u578b\", \"\\u4e58\\u9664\\u6cd5\\u6a21\\u578b\", \"\\u51e0\\u4f55\\u56fe\\u5f62\\u6a21\\u578b\", \"\\u5206\\u6570\\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、不要输出参考资料 或者 References \n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到\n 3、严格按照知识库内容进行回答不要进行推理知识库中条目清晰体现的才算答案。"
},
"2ca4cce66cff2786beef562b80d2b126": {
"return": "{\"high_level_keywords\": [\"\\u5bb6\\u5ead\\u6210\\u5458\", \"\\u82cf\\u8f7c\", \"\\u5bb6\\u65cf\\u5173\\u7cfb\"], \"low_level_keywords\": [\"\\u7a0b\\u6c0f\", \"\\u82cf\\u6d35\", \"\\u738b\\u5f17\", \"\\u82cf\\u8fc8\", \"\\u82cf\\u8fe8\", \"\\u82cf\\u8fc7\"]}",
"cache_type": "keywords",
"chunk_id": null,
"embedding": null,
"embedding_shape": null,
"embedding_min": null,
"embedding_max": null,
"original_prompt": "苏轼的家人都有谁?\n 1、不要输出参考资料 或者 References \n 2、如果问题与提供的知识库内容不符则明确告诉未在知识库范围内提到\n 3、严格按照知识库内容进行回答不要进行推理知识库中条目清晰体现的才算答案。"
}
}
}

@ -196,6 +196,7 @@
</div>
<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">

Loading…
Cancel
Save