Files
rag/core/__init__.py
lacerate551 505f79860e perf(cache): 修复缓存失效 Bug + 集成语义缓存 + 删除 AgenticRAG 死代码
- fix: Query Cache GET/SET Key 不匹配导致命中率始终为 0%
- fix: CACHE_MIN_SCORE 阈值 0.3 对 ChromaDB cosine distance 过于严格
- feat: 在 /rag 端点集成语义缓存(命中时跳过检索+生成,92x 加速)
- refactor: 删除 AgenticRAG 死代码路径(10 个 agentic_*.py,约 1950 行)
- cleanup: 移除 engine.py 死方法、路由死函数、初始化死代码
2026-06-05 21:20:53 +08:00

18 lines
403 B
Python

"""
RAG 核心引擎模块
包含:
- engine: RAGEngine 单例类,管理模型和共享资源
- bm25_index: BM25 关键词检索索引
- chunker: 文本分块器
"""
from .engine import RAGEngine, get_engine
from .bm25_index import BM25Index
from .chunker import split_text_with_limit, split_text
__all__ = [
'RAGEngine', 'get_engine', 'BM25Index',
'split_text_with_limit', 'split_text'
]