zhuyongxin
9cf162482d
refactor(rag): extract retrieval and ingest to py-rag service
...
- replace in-process Milvus stack with PyRagClient + PyRagKnowledgeSearchAdapter behind KnowledgeSearchPort (RERANK score passthrough)
- move document ingest to py-rag /documents:ingest; DocumentManagementService keeps MySQL ledger + local files
- sink L0 query understanding to py-rag; drop KnowledgeQueryTransformer, single UNFILTERED_VECTOR attempt
- remove Milvus deps, config classes, dead demo services and obsolete rebuild scripts
- compose/Makefile reduced to MySQL/Redis; add pyrag.* config
2026-09-30 17:03:21 +08:00
zhuyongxin
7ae9707a3b
feat(harness,rag): dual LLM audit fields, run conclusion, and hybrid quality
...
Persist provider reasoning and assistant text separately on agent_reasoning_audit
(DeepSeekAssistantMessage path), extract diagnosis_run.conclusion, enrich RAG
tool audit (step_id/query/qualityScore), gate empty mysql tools, drop devtools,
and align MVP docs after live E2E verification.
2026-07-28 19:43:13 +08:00
zhuyongxin
85029d96a7
feat(harness): add readonly mysql tool
2026-07-21 21:24:42 +08:00
aruo
6ccfd33ec5
Add diagnosis playbook skills
2026-07-06 08:35:54 +08:00
aruo
5c71f5fc79
feat: integrate spring ai vectorstore fallback
2026-07-05 10:20:29 +08:00
zhuyongxin
d6229f3385
feat(knowledge): 完成 L0+L1 混合检索集成
...
核心功能:
- 新增 FrontmatterParser 解析 YAML frontmatter
- 新增 KnowledgeIndexService L0 内存索引
- 新增 LookupKnowledgeTool 混合检索工具
- 增强 DocumentManagementService 文件保存和索引同步
技术实现:
- 数据库迁移 V004: api_document.metadata (TEXT)
- 依赖新增: snakeyaml 2.0
- 配置新增: knowledge.base-path
- 可观测性: requestId 追踪 + 性能日志
质量保证:
- 单元测试: 31/31 通过
- 测试覆盖: FrontmatterParser(11), KnowledgeIndexService(13), LookupKnowledgeTool(7)
- 启动验证: L0 索引正常加载
归档文档:
- OpenSpec: openspec/changes/lookup-knowledge-integration/
- devflow 档案: devflow/projects/2026-06-24-lookup-knowledge-integration/
- handoff: handoff/2026-06-24-lookup-knowledge-integration.md
2026-06-24 16:07:10 +08:00
zhuyongxin
c3a232540a
refactor(phase1): 完成包名重构 (org.example → com.superbiz.agent)
...
Task 4.1: 包名统一重构
- 重命名 41 个 Java 文件的包名
- 更新所有 import 语句
- 恢复枚举类(FaultCategory、DiagnosisStatus、SourceType)
- 更新测试类的 import
重构范围:
- domain/entity: 3 个实体类
- domain/model: 2 个数据类
- domain/enums: 3 个枚举类
- repository: 3 个接口
- service/session: 2 个类(接口 + 实现)
- config: 9 个配置类
- controller: 2 个控制器
- agent/tool: 4 个工具类
- client: 1 个客户端
- Main.java: 主类
验证结果:
- 编译成功,无错误
- 所有测试通过 (27/27)
- ApiDocumentRepositoryTest: 7/7 ✅
- CaseLibraryRepositoryTest: 6/6 ✅
- DiagnosisRecordRepositoryTest: 6/6 ✅
- RedisSessionManagerTest: 8/8 ✅
Progress: 21/33 tasks completed (64%)
2026-06-23 14:56:04 +08:00
zhuyongxin
caef477cec
Merge branch 'emdash/lemon-shrimps-bake-7q6xl' into refactor/rag-chunking-strategy
...
# Conflicts:
# AGENTS.md
# CLAUDE.md
# src/main/resources/application.yml
2026-06-23 11:06:34 +08:00
zhuyongxin
5ddb7a6d93
feat(phase1): 完成基础设施搭建初步工作
...
- 添加 JPA/Flyway/Redis 依赖到 pom.xml
- 创建 3 个 Flyway 迁移脚本(diagnosis_record/case_library/api_document)
- 创建枚举类(FaultCategory/DiagnosisStatus/SourceType)
- 配置 MySQL + Redis 连接(application.yml)
状态:数据库表脚本就绪,等待数据库创建后验证
2026-06-23 10:53:24 +08:00
aruo
ac08345369
commit
2026-05-31 21:45:14 +08:00
zhuyongxin
d4b5015beb
commit
2026-05-29 21:38:16 +08:00
zhuyongxin
80eada415d
commit
2026-04-30 11:19:46 +08:00