路桥智能体平台

WangXuMing a104aadf2b chore: 提交敏感词库清理和测试文件 18 stundas atpakaļ
.design 00336af860 docs: 更新基础架构设计文档至 v3.0,合并冲突解决 1 mēnesi atpakaļ
.gitea a5af700e4d feat: 添加跨层导入CI检查脚本 2 nedēļas atpakaļ
.vscode 632e360e12 chore: 更新配置文件、文档与 .gitignore 1 nedēļu atpakaļ
config 4e45cb4364 feat: RAG管线质量改进与专业性审查效果优化 1 dienu atpakaļ
core a104aadf2b chore: 提交敏感词库清理和测试文件 18 stundas atpakaļ
data_pipeline 632e360e12 chore: 更新配置文件、文档与 .gitignore 1 nedēļu atpakaļ
docker 84aea1d204 修改docker 打包相关配置文件 6 mēneši atpakaļ
foundation 4e45cb4364 feat: RAG管线质量改进与专业性审查效果优化 1 dienu atpakaļ
requirements 7b6028649e refactor: 清理 requirements — 移除106个无效依赖 2 nedēļas atpakaļ
server 0324bb5a63 feat: 增强 Celery 任务管理与服务优雅关闭 1 nedēļu atpakaļ
utils_test a104aadf2b chore: 提交敏感词库清理和测试文件 18 stundas atpakaļ
views 69c2378ab8 @ 2 dienas atpakaļ
.gitignore 2b117b7ba9 fix: 解耦 catalog 与 structure 处理链路,保持目录和数据独立 1 nedēļu atpakaļ
Dockerfile b139a0cb56 feat: 添加 pyproject.toml + 清理 sys.path.insert 2 nedēļas atpakaļ
Dockerfile.base 5316fedae4 fix: 补全 requirements/base.txt (262包) + Dockerfile.base 适配 2 nedēļas atpakaļ
README.md 632e360e12 chore: 更新配置文件、文档与 .gitignore 1 nedēļu atpakaļ
README_deploy.md 388284576f 增加说明 3 mēneši atpakaļ
README_test.md 243451de10 test 2 mēneši atpakaļ
deploy_agent.sh 95de39c4cb feat(deploy): 代理检测与启动提示 1 mēnesi atpakaļ
problem.json 46fc37cf1e fix(sgsc-时效性审查模型-xth): 修复时效性bug 2 mēneši atpakaļ
pyproject.toml b139a0cb56 feat: 添加 pyproject.toml + 清理 sys.path.insert 2 nedēļas atpakaļ
requirements.txt 0bd380f464 feat(ocr): 添加YOLO目录检测、OCR提取及Embedding配置优化 1 mēnesi atpakaļ
run.sh 84aea1d204 修改docker 打包相关配置文件 6 mēneši atpakaļ

README.md

LQAgentPlatform

施工方案智能审查与编写系统(FastAPI + LangGraph + Celery)

环境安装

# 1. 安装生产依赖
pip install -r requirements/base.txt -i https://mirrors.aliyun.com/pypi/simple/

# 2. 安装开发依赖(可选,含 pytest/ruff/mypy)
pip install -r requirements/dev.txt -i https://mirrors.aliyun.com/pypi/simple/

# 3. 注册项目路径(替代 sys.path.insert,秒级完成)
pip install -e .

启动服务

# 开发模式(单进程)
uvicorn server.app:app --port=8001 --host=0.0.0.0

# 开发模式(含 Celery Worker)
python server/app.py --host 0.0.0.0 --port 8001

# 生产模式(多进程)
gunicorn -c gunicorn_config.py server.app:app

Docker 部署

# 首次或依赖变更时:构建 base 镜像(耗时较长)
docker build -f Dockerfile.base -t lq-agent-base:latest .

# 日常构建:秒级(仅复制源码)
docker build -t lq_agent_platform_server_dev:v1.0 .

# 启动
docker-compose -f docker/docker-compose.yml up -d

运行测试

pytest utils_test/<TestDir>/

项目结构

server/          — 应用入口(app/factory/routes/celery_manager/runner)
views/           — API 路由层
core/            — 业务逻辑(审查引擎、编写引擎、工作流编排)
foundation/      — 基础设施(AI 模型、数据库、Redis、Celery、链路追踪)
config/          — 配置文件 & Prompt 模板
requirements/    — 依赖清单(base.txt 生产 / dev.txt 开发)
data_pipeline/   — Milvus 向量库灌入工具
utils_test/      — 按模块组织的测试套件

API 路由前缀

前缀 功能
/sgsc 施工方案审查
/sgbx 施工方案编写
/health 健康检查
/celery/status Celery 状态

架构约束

  • views/ 禁止直接导入 foundation/database/
  • core/component/ 禁止直接导入 foundation/database/
  • 配置读取通过 config_handler.get(section, key)
  • 提交前运行 python scripts/check_imports.py