Files
rag/knowledge/__init__.py
lacerate551 100d1a06eb init: RAG 知识库服务初始提交
- 后端 API(Flask + Gunicorn)
- RAG 引擎(混合检索 + 云端 Reranker + 引用溯源)
- 文档解析(MinerU + 多格式支持)
- Docker 生产部署配置
- 排除前端项目、敏感配置、模型文件
2026-06-04 17:35:27 +08:00

41 lines
893 B
Python

"""
知识库管理模块
包含:
- manager: 多向量库管理器 (KnowledgeBaseManager)
- router: 知识库路由器 (KnowledgeBaseRouter)
- sync: 知识库同步服务 (KnowledgeSyncService)
- base: 基础类和常量
- collection: 向量库管理 Mixin
- document: 文档管理 Mixin
- chunk: 切片管理 Mixin
- index: BM25 索引管理 Mixin
- search: 检索功能 Mixin
- processing: 图片/表格处理 Mixin
- permission: 权限控制 Mixin
"""
from .manager import KnowledgeBaseManager
from .router import KnowledgeBaseRouter
from .base import (
BM25Index,
CollectionInfo,
SearchResult,
PUBLIC_KB_NAME,
)
try:
from .sync import KnowledgeSyncService
except ImportError:
pass
__all__ = [
'KnowledgeBaseManager',
'KnowledgeBaseRouter',
'KnowledgeSyncService',
'BM25Index',
'CollectionInfo',
'SearchResult',
'PUBLIC_KB_NAME',
]