Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix youdao bug (#551)

KevinHuShb75d75e995f9
diff --git a/api/db/init_data.py b/api/db/init_data.py
index ecd3114737..d0f4d86fe4 100644
--- a/api/db/init_data.py
+++ b/api/db/init_data.py
@@ -347,8 +347,8 @@ def init_llm_factory():
LLMService.filter_delete([LLM.fid == "Local"])
LLMService.filter_delete([LLM.fid == "Moonshot", LLM.llm_name == "flag-embedding"])
TenantLLMService.filter_delete([TenantLLM.llm_factory == "Moonshot", TenantLLM.llm_name == "flag-embedding"])
- LLMFactoriesService.filter_update([LLMFactoriesService.model.name == "QAnything"], {"name": "Youdao"})
- LLMService.filter_update([LLMService.model.fid == "QAnything"], {"fid": "Youdao"})
+ LLMFactoriesService.filter_delete([LLMFactoriesService.model.name == "QAnything"])
+ LLMService.filter_delete([LLMService.model.fid == "QAnything"])
TenantLLMService.filter_update([TenantLLMService.model.llm_factory == "QAnything"], {"llm_factory": "Youdao"})
"""
drop table llm;