Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Has been cancelled
主要修复: 1. 修复 RAG 推理无限循环问题(大小写不匹配 + 缺少已检索结果检查) 2. 修复 intent_classifier.py 的绝对导入错误 3. 删除旧的 start.sh 脚本,添加新的启动脚本 4. 优化路由逻辑和状态管理
21 lines
667 B
Python
21 lines
667 B
Python
#!/usr/bin/env python3
|
|
"""统一入口:设置路径后运行 RAG 索引构建 CLI"""
|
|
import sys
|
|
from pathlib import Path
|
|
from dotenv import load_dotenv
|
|
|
|
# 路径设置
|
|
project_root = Path(__file__).resolve().parent.parent
|
|
sys.path.insert(0, str(project_root))
|
|
sys.path.insert(0, str(project_root / "backend"))
|
|
load_dotenv(project_root / ".env")
|
|
|
|
if __name__ == "__main__":
|
|
#from rag_indexer.cli import main
|
|
#from tools.test.test_rag_indexer_result import main
|
|
#from tools.test.test_rag_pipeline import main
|
|
from tools.test.test_fast_rag_fix import main
|
|
#from tools.test.test_graph_branches import main
|
|
import asyncio
|
|
asyncio.run(main())
|