有时候需要测试不同配置配置,在A知识库上传 **xxx.txt** 解析后再新建B知识库,用工具上传 **xxx.txt** 就会显示 '知识库中已上传,跳过' ```py if ragflowdb.exist_name(filename): doc_item = ragflowdb.get_doc_item_by_name(filename) if doc_item.get('progress') == 1: timeutils.print_log(f"{file_path} 已上传,跳过") ``` 感觉在main.py中还可以再加个是否来自同一知识库的判断