Commit Graph

19 Commits

Author SHA1 Message Date
admin a46ceb94de feat: 重构图谱抽取 — 支持建筑规范文档的 8 种实体类型
GraphRAG CI/CD / build-and-deploy (push) Successful in 6m15s
- 实体类型改为:构件/设备/设施/指标/场所/材料/措施/条款
- 中文 prompt + 建筑规范领域 Few-shot 示例
- 前端图谱颜色、筛选项同步更新
- QA agent 系统提示词适配建筑规范领域
2026-06-18 16:30:58 +08:00
admin 4f203e3b56 fix: nginx 添加 client_max_body_size 200m 支持大文件上传
GraphRAG CI/CD / build-and-deploy (push) Successful in 2m29s
2026-06-18 16:08:23 +08:00
admin d2f782e47e fix: API 请求前用 keycloak.updateToken(30) 刷新即将过期的 token
GraphRAG CI/CD / build-and-deploy (push) Successful in 3m7s
getToken() 只返回缓存的 token,可能已过期(默认 5 分钟生命周期)。
updateToken(30) 确保发送前 token 至少还有 30 秒有效时长。
2026-06-18 16:02:07 +08:00
admin e49b01ddd4 fix: CI rollout 超时 120s→300s (backend startupProbe 需较长时间)
GraphRAG CI/CD / build-and-deploy (push) Successful in 2m50s
v1.0.0
2026-06-18 15:22:51 +08:00
admin 5404a904a0 fix: CI 添加 registry 认证凭据
GraphRAG CI/CD / build-and-deploy (push) Failing after 4m43s
2026-06-18 15:15:23 +08:00
admin 4c8b5ceed3 fix: CI 移除 docker login — registry.plfai.cn 无需认证
GraphRAG CI/CD / build-and-deploy (push) Failing after 3s
2026-06-18 15:10:59 +08:00
admin 6f8c3a09af fix: 增加 uv pip install 超时到 300s
GraphRAG CI/CD / build-and-deploy (push) Failing after 19m6s
UV_HTTP_TIMEOUT=300 防止大包(numpy/pandas/cryptography)下载超时
2026-06-18 14:49:57 +08:00
admin 719d8978b5 fix: backend Dockerfile 使用阿里云 PyPI 镜像加速 pip 安装
GraphRAG CI/CD / build-and-deploy (push) Failing after 12m52s
uv pip install 添加 --index-url mirrors.aliyun.com/pypi/simple/
并以 --extra-index-url pypi.org 作为回退,确保自定义包也可安装
2026-06-18 14:33:24 +08:00
admin 58079daba9 feat: 添加 Gitea Actions CI/CD — tag 驱动环境部署
GraphRAG CI/CD / build-and-deploy (push) Failing after 3m49s
- git push → 构建镜像 (sha-xxx) → 部署到 test (graphrag-test)
- git push --tags → 构建镜像 (vx.y.z) → 部署到 prod (graphrag-prod)
- DNS + hostAliases + nodeAffinity 固化到 deployment yaml
- 前后端均固定到 k8smaster 节点,便于 CI 导入 containerd 镜像
2026-06-18 14:26:15 +08:00
admin ebf27a6c3e fix: KGEmptyError 自定义异常 + CORS 环境变量配置
- qa_service 定义 KGEmptyError 异常,run_query 抛出;routers/query 精确捕获 → HTTP 400 + code 3002,移除字符串匹配
- main.py CORS 改为读 CORS_ORIGINS 环境变量:未设置时 wildcard + credentials=False(合规默认),设置后显式列表 + credentials=True
- .env.example 新增 CORS_ORIGINS 默认值(后端 + 前端 4 个域名)
2026-06-18 14:06:38 +08:00
admin 347f9dcae5 fix: deploy.sh 后端域名 nginx 配置 — /docs /redoc 走 backend 而非 frontend
后端域名 (-backend.plfai.cn) 不需要前端,location / 应直接代理到 backend:8000,
否则 /docs /redoc /openapi.json 被错误转发到前端 nginx 导致 504。
2026-06-17 23:29:24 +08:00
admin 09d10de6d5 fix: 修复健康检查 venv 路径、HTML 标题及硬编码 Windows 路径
- health check 改用 sys.executable 动态获取 Python 路径,适配容器内 /opt/venv
- demo 数据 fallback 路径修正,移除硬编码的 F:/GraphRAGAgent Windows 路径
- 前端 index.html 标题从"构建产品原型"改为"GraphRAG Studio"
2026-06-17 22:27:46 +08:00
admin 1d12cb574e fix: cleanup k8s configs, add deploy.sh, remove hardcoded secrets
- Add one-click deploy script (k8s/deploy.sh) for test + prod
- Add startupProbe to backend (60x10s = 10min grace for ML model loading)
- Add configmap.yaml and secret.yaml (envsubst from backend/.env)
- Fix image URLs: add registry.plfai.cn prefix
- Fix frontend: API base URL relative (/api/v1), login-required mode
- Remove hardcoded localhost references from frontend
- Clean broken kustomize overlays
- Add nodeAffinity for backend→k8smaster, frontend→plf-cvm/k8smaster
- Remove dead ReplicaSets and stale pods during deploy
2026-06-16 14:15:31 +08:00
admin 23f07dd3a7 feat: 集成 Keycloak 认证 — 前后端 + K8s 配置 2026-06-15 17:30:57 +08:00
admin eeea55e9e4 feat: 添加 Dockerfile、docker-compose 及 K8s kustomize 部署文件 2026-06-15 16:49:35 +08:00
admin fd1bac551c fix: 修复 Linux 兼容性,添加原生构建依赖,忽略运行时数据 2026-06-11 14:21:04 +08:00
admin 91a7e22840 feat: 新增 mineru_mvp 文档解析组件并适配 Linux 路径 2026-06-11 11:24:12 +08:00
admin 4c51d8ce7f docs: 添加系统架构图和核心业务流程图 (drawio) 2026-06-11 10:58:15 +08:00
admin b02d3378fc GraphRAG Studio — initial commit: multimodal RAG system with KG visualization
Full-stack application for document-to-knowledge-graph pipeline:
- Backend: FastAPI + LangGraph ReAct agent + DeepSeek + MinerU parsing
- Frontend: React 19 + Vite + D3.js + shadcn/ui
- Pipeline: MinerU parsing → LangExtract entity extraction → KG building

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-07 17:30:04 +08:00