init: RAG 知识库服务初始提交
- 后端 API(Flask + Gunicorn) - RAG 引擎(混合检索 + 云端 Reranker + 引用溯源) - 文档解析(MinerU + 多格式支持) - Docker 生产部署配置 - 排除前端项目、敏感配置、模型文件
This commit is contained in:
31
parsers/pdf_mineru.py
Normal file
31
parsers/pdf_mineru.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
MinerU PDF 解析模块(兼容性别名)
|
||||
|
||||
此文件保留用于向后兼容,实际实现已迁移到 mineru_parser.py
|
||||
新代码请直接使用: from parsers.mineru_parser import parse_with_mineru
|
||||
"""
|
||||
|
||||
# 从新模块导入所有内容
|
||||
from parsers.mineru_parser import (
|
||||
parse_with_mineru,
|
||||
parse_pdf_with_mineru,
|
||||
parse_docx_with_mineru,
|
||||
parse_xlsx_with_mineru,
|
||||
parse_pptx_with_mineru,
|
||||
convert_to_rag_format,
|
||||
html_table_to_markdown,
|
||||
MinerUChunk,
|
||||
ChunkMetadata,
|
||||
SUPPORTED_FORMATS,
|
||||
)
|
||||
|
||||
# 保持向后兼容
|
||||
__all__ = [
|
||||
'parse_pdf_with_mineru',
|
||||
'parse_with_mineru',
|
||||
'convert_to_rag_format',
|
||||
'html_table_to_markdown',
|
||||
'MinerUChunk',
|
||||
'ChunkMetadata',
|
||||
]
|
||||
Reference in New Issue
Block a user