[前端+RAG] 修复PDF文字重叠;上传异步化(LLM+向量化后台执行);摘要关键词模型改为deepseek-v3

This commit is contained in:
2026-04-02 14:10:08 +08:00
parent 0e25154468
commit 5158753b94
3 changed files with 122 additions and 116 deletions

View File

@@ -390,7 +390,7 @@ class KnowledgeFile:
llm_time = time.time()
abstract_task = get_llm_model_response_async(
strategy_name="gen_abstract",
llm_model_name=LLM_MODELS[1],
llm_model_name=LLM_MODELS[0],
template_prompt_name="gen_abstract",
prompt_param_dict={"context": full_text},
temperature=0.7,
@@ -399,7 +399,7 @@ class KnowledgeFile:
keywords_task = get_llm_model_response_async(
strategy_name="gen_keywords",
llm_model_name=LLM_MODELS[1],
llm_model_name=LLM_MODELS[0],
template_prompt_name="gen_keywords",
prompt_param_dict={"context": full_text},
temperature=0.7,