Skip to content

不同知识库上传同一文件会被跳过 #17

@POURCHA

Description

@POURCHA

有时候需要测试不同配置配置,在A知识库上传 xxx.txt 解析后再新建B知识库,用工具上传 xxx.txt 就会显示 '知识库中已上传,跳过'

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中还可以再加个是否来自同一知识库的判断

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions