main
HuangHai 1 week ago
parent 2b7bb92fa7
commit 29e5ed8b09

@ -0,0 +1,10 @@
delete from lightrag_doc_full where workspace='SuShi';
delete from lightrag_doc_chunks where workspace='SuShi';
delete from lightrag_doc_status where workspace='SuShi';
delete from lightrag_llm_cache where workspace='SuShi';
delete from lightrag_vdb_entity where workspace='SuShi';
delete from lightrag_vdb_relation where workspace='SuShi';

@ -51,7 +51,7 @@ async def rag(request: fastapi.Request):
if output_model == "txt": if output_model == "txt":
user_prompt = "\n 1、不要输出参考资料 或者 References 也不要标识DC或者KG" user_prompt = "\n 1、不要输出参考资料 或者 References 也不要标识DC或者KG"
user_prompt = user_prompt+ "\n 2、资料中提供化学反应方程式的一定要严格按提供的Latex公式输出绝对不允许对Latex公式进行修改 " user_prompt = user_prompt + "\n 2、资料中提供化学反应方程式的一定要严格按提供的Latex公式输出绝对不允许对Latex公式进行修改 "
user_prompt = user_prompt + "\n 3、如果资料中提供了图片的一定要严格按照原文提供图片输出绝对不能省略或不输出" user_prompt = user_prompt + "\n 3、如果资料中提供了图片的一定要严格按照原文提供图片输出绝对不能省略或不输出"
# user_prompt = user_prompt + "\n 4、资料中提到的知识内容需要判断是否与本次问题相关不相关的绝对不要输出" # user_prompt = user_prompt + "\n 4、资料中提到的知识内容需要判断是否与本次问题相关不相关的绝对不要输出"
user_prompt = user_prompt + "\n 4、根据资料回答问题可以适当拓展一下内容进行回答" user_prompt = user_prompt + "\n 4、根据资料回答问题可以适当拓展一下内容进行回答"
@ -97,7 +97,7 @@ async def rag(request: fastapi.Request):
""" """
# 使用PG库后这个是没有用的,但目前的项目代码要求必传,就写一个吧。 # 使用PG库后这个是没有用的,但目前的项目代码要求必传,就写一个吧。
WORKING_DIR = workspace WORKING_DIR = 'WorkingPath/' + workspace
if not os.path.exists(WORKING_DIR): if not os.path.exists(WORKING_DIR):
os.makedirs(WORKING_DIR) os.makedirs(WORKING_DIR)

@ -236,7 +236,7 @@
小学数学 小学数学
</label> </label>
<label> <label>
<input type="radio" name="topic" value="Chinese"> <input type="radio" name="topic" value="SuShi">
苏轼知识 苏轼知识
</label> </label>
<label> <label>

Loading…
Cancel
Save