Self Checks
RAGFlow workspace code commit ID
NA
RAGFlow image version
0.25.0
Other environment information
Actual behavior
After upgrading to version 0.25.0, all metadata has been lost. The large language models that were previously connected through LM Studio have all become invalid. Re-adding them still doesn't allow them to be called/used.
The log of -ragflow-cpu-1:
2026-04-22 21:35:04,498 INFO 109 naive_merge(673--关于废止两件人民币现钞进出境通关业务管理文件的公告(中国人民银行 海关总署公告〔2026〕第6号).docx): 0.012847680000049877
2026-04-22 21:35:04,500 INFO 109 Chunking(0.25581055499969807) 673--关于废止两件人民币现钞进出境通关业务管理文件的公告(中国人民银行 海关总署公告〔2026〕第6号).docx/673--关于废止两件人民币现钞进出境通关业务管理文件的公告(中国人民银行 海关总署公告〔2026〕第6号).docx done
2026-04-22 21:35:04,501 INFO 109 MINIO PUT(673--关于废止两件人民币现钞进出境通关业务管理文件的公告(中国人民银行 海关总署公告〔2026〕第6号).docx) cost 0.000 s
2026-04-22 21:35:04,533 INFO 109 set_progress(116125783e5011f181eec330e0d2efb5), progress: None, progress_msg: 21:35:04 Page(1~100000001): Start to generate meta-data for every chunk ...
2026-04-22 21:35:04,613 INFO 109 set_progress(116125783e5011f181eec330e0d2efb5), progress: -1, progress_msg: 21:35:04 [ERROR][Exception]: Tenant Model with name qwen3.5-9b@LM-Studio and type chat not found
2026-04-22 21:35:04,615 ERROR 109 handle_task got exception for task {"id": "116125783e5011f181eec330e0d2efb5", "doc_id": "b036b6643e4f11f181eec330e0d2efb5", "from_page": 0, "to_page": 100000000, "retry_count": 0, "kb_id": "78b0e6d83e4f11f181eec330e0d2efb5", "parser_id": "naive", "parser_config": {"table_context_size": 0, "image_context_size": 0, "layout_recognize": "DeepDOC", "chunk_token_num": 512, "delimiter": "\n", "auto_keywords": 0, "auto_questions": 0, "html4excel": false, "topn_tags": 3, "raptor": {"use_raptor": true, "prompt": "Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:\n {cluster_content}\nThe above is the content you need to summarize.", "max_token": 256, "threshold": 0.1, "max_cluster": 64, "random_seed": 0, "ext": {"scope": "file"}}, "graphrag": {"use_graphrag": true, "entity_types": ["organization", "person", "geo", "event", "category"], "method": "light"}, "parent_child": {"use_parent_child": false, "children_delimiter": "\n"}, "children_delimiter": "", "llm_id": "qwen3.5-9b@LM-Studio", "metadata": [{"key": "Effective_Day", "description": "\u6267\u884c\u6216\u5b9e\u65bd\u65e5\u671f", "enum": []}, {"key": "Issue_NO", "description": "\u6cd5\u89c4\u6587\u53f7", "enum": []}, {"key": "Topic", "description": "\u6cd5\u89c4\u4e3b\u9898", "enum": []}], "enable_metadata": true, "enable_children": false, "toc_extraction": true, "image_table_context_window": 0, "overlapped_percent": 0, "mineru_parse_method": "auto", "mineru_formula_enable": true, "mineru_table_enable": true, "mineru_lang": "English", "built_in_metadata": []}, "name": "673--\u5173\u4e8e\u5e9f\u6b62\u4e24\u4ef6\u4eba\u6c11\u5e01\u73b0\u949e\u8fdb\u51fa\u5883\u901a\u5173\u4e1a\u52a1\u7ba1\u7406\u6587\u4ef6\u7684\u516c\u544a\uff08\u4e2d\u56fd\u4eba\u6c11\u94f6\u884c \u6d77\u5173\u603b\u7f72\u516c\u544a\u30142026\u3015\u7b2c6\u53f7\uff09.docx", "type": "doc", "location": "673--\u5173\u4e8e\u5e9f\u6b62\u4e24\u4ef6\u4eba\u6c11\u5e01\u73b0\u949e\u8fdb\u51fa\u5883\u901a\u5173\u4e1a\u52a1\u7ba1\u7406\u6587\u4ef6\u7684\u516c\u544a\uff08\u4e2d\u56fd\u4eba\u6c11\u94f6\u884c \u6d77\u5173\u603b\u7f72\u516c\u544a\u30142026\u3015\u7b2c6\u53f7\uff09.docx", "size": 15196, "tenant_id": "cfc61ecad04011f0b8ce2e8615701a4b", "language": "English", "embd_id": "text-embedding-snowflake-arctic-embed-l-v2.0@LM-Studio", "pagerank": 0, "kb_parser_config": {"table_context_size": 0, "image_context_size": 0, "layout_recognize": "DeepDOC", "chunk_token_num": 512, "delimiter": "\n", "auto_keywords": 0, "auto_questions": 0, "html4excel": false, "topn_tags": 3, "raptor": {"use_raptor": true, "prompt": "Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:\n {cluster_content}\nThe above is the content you need to summarize.", "max_token": 256, "threshold": 0.1, "max_cluster": 64, "random_seed": 0, "ext": {"scope": "file"}}, "graphrag": {"use_graphrag": true, "entity_types": ["organization", "person", "geo", "event", "category"], "method": "light"}, "parent_child": {"use_parent_child": false, "children_delimiter": "\n"}, "children_delimiter": "", "llm_id": "qwen3.5-9b@LM-Studio", "metadata": [{"key": "Effective_Day", "description": "\u6267\u884c\u6216\u5b9e\u65bd\u65e5\u671f", "enum": []}, {"key": "Issue_NO", "description": "\u6cd5\u89c4\u6587\u53f7", "enum": []}, {"key": "Topic", "description": "\u6cd5\u89c4\u4e3b\u9898", "enum": []}], "enable_metadata": true, "enable_children": false, "toc_extraction": true, "image_table_context_window": 0, "overlapped_percent": 0, "mineru_parse_method": "auto", "mineru_formula_enable": true, "mineru_table_enable": true, "mineru_lang": "English", "built_in_metadata": []}, "img2txt_id": "qwen3.5-9b@LM-Studio", "asr_id": "", "llm_id": "qwen3.5-9b@LM-Studio", "update_time": 1776864903552, "task_type": ""}
Traceback (most recent call last):
File "/ragflow/rag/svr/task_executor.py", line 1285, in handle_task
await do_handle_task(task)
File "/ragflow/common/connection_utils.py", line 74, in async_wrapper
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ragflow/rag/svr/task_executor.py", line 1182, in do_handle_task
chunks = await build_chunks(task, progress_callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ragflow/common/connection_utils.py", line 74, in async_wrapper
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ragflow/rag/svr/task_executor.py", line 413, in build_chunks
chat_model_config = get_model_config_by_type_and_name(task["tenant_id"], LLMType.CHAT, task["llm_id"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ragflow/api/db/joint_services/tenant_model_service.py", line 63, in get_model_config_by_type_and_name
raise LookupError(f"Tenant Model with name {model_name} and type {model_type_val} not found")
LookupError: Tenant Model with name qwen3.5-9b@LM-Studio and type chat not found
[2026-04-22 21:35:04 +0800] [87] [INFO] 127.0.0.1:55616 GET /v1/kb/detail 1.1 200 1885 1022614
2026-04-22 21:35:08,674 INFO 87 HEAD http://es01:9200/ragflow_doc_meta_cfc61ecad04011f0b8ce2e8615701a4b [status:200 duration:0.003s]
2026-04-22 21:35:08,683 INFO 87 POST http://es01:9200/ragflow_doc_meta_cfc61ecad04011f0b8ce2e8615701a4b/_search [status:200 duration:0.005s]
[2026-04-22 21:35:08 +0800] [87] [INFO] 127.0.0.1:54094 GET /api/v1/datasets/78b0e6d83e4f11f181eec330e0d2efb5/documents 1.1 200 2905 25827
2026-04-22 21:35:08,710 INFO 87 HEAD http://es01:9200/ragflow_doc_meta_cfc61ecad04011f0b8ce2e8615701a4b [status:200 duration:0.004s]
2026-04-22 21:35:08,719 INFO 87 POST http://es01:9200/ragflow_doc_meta_cfc61ecad04011f0b8ce2e8615701a4b/_search [status:200 duration:0.005s]
[2026-04-22 21:35:08 +0800] [87] [INFO] 127.0.0.1:54110 POST /v1/document/filter 1.1 200 143 26033
Below show I have added LLM

Expected behavior
Run smoothly.
Steps to reproduce
pull the latest image 0.25.0, run .
Additional information
No response
Self Checks
RAGFlow workspace code commit ID
NA
RAGFlow image version
0.25.0
Other environment information
Actual behavior
After upgrading to version 0.25.0, all metadata has been lost. The large language models that were previously connected through LM Studio have all become invalid. Re-adding them still doesn't allow them to be called/used.
The log of -ragflow-cpu-1:
2026-04-22 21:35:04,498 INFO 109 naive_merge(673--关于废止两件人民币现钞进出境通关业务管理文件的公告(中国人民银行 海关总署公告〔2026〕第6号).docx): 0.012847680000049877
2026-04-22 21:35:04,500 INFO 109 Chunking(0.25581055499969807) 673--关于废止两件人民币现钞进出境通关业务管理文件的公告(中国人民银行 海关总署公告〔2026〕第6号).docx/673--关于废止两件人民币现钞进出境通关业务管理文件的公告(中国人民银行 海关总署公告〔2026〕第6号).docx done
2026-04-22 21:35:04,501 INFO 109 MINIO PUT(673--关于废止两件人民币现钞进出境通关业务管理文件的公告(中国人民银行 海关总署公告〔2026〕第6号).docx) cost 0.000 s
2026-04-22 21:35:04,533 INFO 109 set_progress(116125783e5011f181eec330e0d2efb5), progress: None, progress_msg: 21:35:04 Page(1~100000001): Start to generate meta-data for every chunk ...
2026-04-22 21:35:04,613 INFO 109 set_progress(116125783e5011f181eec330e0d2efb5), progress: -1, progress_msg: 21:35:04 [ERROR][Exception]: Tenant Model with name qwen3.5-9b@LM-Studio and type chat not found
2026-04-22 21:35:04,615 ERROR 109 handle_task got exception for task {"id": "116125783e5011f181eec330e0d2efb5", "doc_id": "b036b6643e4f11f181eec330e0d2efb5", "from_page": 0, "to_page": 100000000, "retry_count": 0, "kb_id": "78b0e6d83e4f11f181eec330e0d2efb5", "parser_id": "naive", "parser_config": {"table_context_size": 0, "image_context_size": 0, "layout_recognize": "DeepDOC", "chunk_token_num": 512, "delimiter": "\n", "auto_keywords": 0, "auto_questions": 0, "html4excel": false, "topn_tags": 3, "raptor": {"use_raptor": true, "prompt": "Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:\n {cluster_content}\nThe above is the content you need to summarize.", "max_token": 256, "threshold": 0.1, "max_cluster": 64, "random_seed": 0, "ext": {"scope": "file"}}, "graphrag": {"use_graphrag": true, "entity_types": ["organization", "person", "geo", "event", "category"], "method": "light"}, "parent_child": {"use_parent_child": false, "children_delimiter": "\n"}, "children_delimiter": "", "llm_id": "qwen3.5-9b@LM-Studio", "metadata": [{"key": "Effective_Day", "description": "\u6267\u884c\u6216\u5b9e\u65bd\u65e5\u671f", "enum": []}, {"key": "Issue_NO", "description": "\u6cd5\u89c4\u6587\u53f7", "enum": []}, {"key": "Topic", "description": "\u6cd5\u89c4\u4e3b\u9898", "enum": []}], "enable_metadata": true, "enable_children": false, "toc_extraction": true, "image_table_context_window": 0, "overlapped_percent": 0, "mineru_parse_method": "auto", "mineru_formula_enable": true, "mineru_table_enable": true, "mineru_lang": "English", "built_in_metadata": []}, "name": "673--\u5173\u4e8e\u5e9f\u6b62\u4e24\u4ef6\u4eba\u6c11\u5e01\u73b0\u949e\u8fdb\u51fa\u5883\u901a\u5173\u4e1a\u52a1\u7ba1\u7406\u6587\u4ef6\u7684\u516c\u544a\uff08\u4e2d\u56fd\u4eba\u6c11\u94f6\u884c \u6d77\u5173\u603b\u7f72\u516c\u544a\u30142026\u3015\u7b2c6\u53f7\uff09.docx", "type": "doc", "location": "673--\u5173\u4e8e\u5e9f\u6b62\u4e24\u4ef6\u4eba\u6c11\u5e01\u73b0\u949e\u8fdb\u51fa\u5883\u901a\u5173\u4e1a\u52a1\u7ba1\u7406\u6587\u4ef6\u7684\u516c\u544a\uff08\u4e2d\u56fd\u4eba\u6c11\u94f6\u884c \u6d77\u5173\u603b\u7f72\u516c\u544a\u30142026\u3015\u7b2c6\u53f7\uff09.docx", "size": 15196, "tenant_id": "cfc61ecad04011f0b8ce2e8615701a4b", "language": "English", "embd_id": "text-embedding-snowflake-arctic-embed-l-v2.0@LM-Studio", "pagerank": 0, "kb_parser_config": {"table_context_size": 0, "image_context_size": 0, "layout_recognize": "DeepDOC", "chunk_token_num": 512, "delimiter": "\n", "auto_keywords": 0, "auto_questions": 0, "html4excel": false, "topn_tags": 3, "raptor": {"use_raptor": true, "prompt": "Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:\n {cluster_content}\nThe above is the content you need to summarize.", "max_token": 256, "threshold": 0.1, "max_cluster": 64, "random_seed": 0, "ext": {"scope": "file"}}, "graphrag": {"use_graphrag": true, "entity_types": ["organization", "person", "geo", "event", "category"], "method": "light"}, "parent_child": {"use_parent_child": false, "children_delimiter": "\n"}, "children_delimiter": "", "llm_id": "qwen3.5-9b@LM-Studio", "metadata": [{"key": "Effective_Day", "description": "\u6267\u884c\u6216\u5b9e\u65bd\u65e5\u671f", "enum": []}, {"key": "Issue_NO", "description": "\u6cd5\u89c4\u6587\u53f7", "enum": []}, {"key": "Topic", "description": "\u6cd5\u89c4\u4e3b\u9898", "enum": []}], "enable_metadata": true, "enable_children": false, "toc_extraction": true, "image_table_context_window": 0, "overlapped_percent": 0, "mineru_parse_method": "auto", "mineru_formula_enable": true, "mineru_table_enable": true, "mineru_lang": "English", "built_in_metadata": []}, "img2txt_id": "qwen3.5-9b@LM-Studio", "asr_id": "", "llm_id": "qwen3.5-9b@LM-Studio", "update_time": 1776864903552, "task_type": ""}
Traceback (most recent call last):
File "/ragflow/rag/svr/task_executor.py", line 1285, in handle_task
File "/ragflow/common/connection_utils.py", line 74, in async_wrapper
File "/ragflow/rag/svr/task_executor.py", line 1182, in do_handle_task
File "/ragflow/common/connection_utils.py", line 74, in async_wrapper
File "/ragflow/rag/svr/task_executor.py", line 413, in build_chunks
File "/ragflow/api/db/joint_services/tenant_model_service.py", line 63, in get_model_config_by_type_and_name
LookupError: Tenant Model with name qwen3.5-9b@LM-Studio and type chat not found
[2026-04-22 21:35:04 +0800] [87] [INFO] 127.0.0.1:55616 GET /v1/kb/detail 1.1 200 1885 1022614
2026-04-22 21:35:08,674 INFO 87 HEAD http://es01:9200/ragflow_doc_meta_cfc61ecad04011f0b8ce2e8615701a4b [status:200 duration:0.003s]
2026-04-22 21:35:08,683 INFO 87 POST http://es01:9200/ragflow_doc_meta_cfc61ecad04011f0b8ce2e8615701a4b/_search [status:200 duration:0.005s]
[2026-04-22 21:35:08 +0800] [87] [INFO] 127.0.0.1:54094 GET /api/v1/datasets/78b0e6d83e4f11f181eec330e0d2efb5/documents 1.1 200 2905 25827
2026-04-22 21:35:08,710 INFO 87 HEAD http://es01:9200/ragflow_doc_meta_cfc61ecad04011f0b8ce2e8615701a4b [status:200 duration:0.004s]
2026-04-22 21:35:08,719 INFO 87 POST http://es01:9200/ragflow_doc_meta_cfc61ecad04011f0b8ce2e8615701a4b/_search [status:200 duration:0.005s]
[2026-04-22 21:35:08 +0800] [87] [INFO] 127.0.0.1:54110 POST /v1/document/filter 1.1 200 143 26033
Below show I have added LLM

Expected behavior
Run smoothly.
Steps to reproduce
Additional information
No response