feat(pkb): Integrate pgvector and create Dify replacement plan

Summary:
- Migrate PostgreSQL to pgvector/pgvector:pg15 Docker image
- Successfully install and verify pgvector 0.8.1 extension
- Create comprehensive Dify-to-pgvector migration plan
- Update PKB module documentation with pgvector status
- Update system documentation with pgvector integration

Key changes:
- docker-compose.yml: Switch to pgvector/pgvector:pg15 image
- Add EkbDocument and EkbChunk data model design
- Design R-C-R-G hybrid retrieval architecture
- Add clinical data JSONB fields (pico, studyDesign, regimen, safety, criteria, endpoints)
- Create detailed 10-day implementation roadmap

Documentation updates:
- PKB module status: pgvector RAG infrastructure ready
- System status: pgvector 0.8.1 integrated
- New: Dify replacement development plan (01-Dify替换为pgvector开发计划.md)
- New: Enterprise medical knowledge base solution V2

Tested: PostgreSQL with pgvector verified, frontend and backend functionality confirmed
This commit is contained in:
2026-01-20 00:00:58 +08:00
parent 1ece9a4ae8
commit dfc0fe0b9a
289 changed files with 1897 additions and 41 deletions

View File

@@ -895,5 +895,6 @@ ACR镜像仓库

View File

@@ -1382,5 +1382,6 @@ SAE应用配置:

View File

@@ -1198,5 +1198,6 @@ docker exec -e PGPASSWORD="密码" ai-clinical-postgres psql -h RDS地址 -U air

View File

@@ -609,5 +609,6 @@ scripts/*.ts

View File

@@ -297,5 +297,6 @@ Node.js后端部署成功后

View File

@@ -520,5 +520,6 @@ Node.js后端 (SAE) ← http://172.17.173.88:3001

View File

@@ -235,5 +235,6 @@ curl http://localhost:3001/health

View File

@@ -273,5 +273,6 @@ npm run dev

View File

@@ -497,5 +497,6 @@ pgm-2zex1m2y3r23hdn5.pg.rds.aliyuncs.com:5432

View File

@@ -1825,5 +1825,6 @@ curl http://8.140.53.236/

View File

@@ -373,5 +373,6 @@ crpi-cd5ij4pjt65mweeo.cn-beijing.personal.cr.aliyuncs.com/ai-clinical/backend-se

View File

@@ -695,5 +695,6 @@ docker login --username=gofeng117@163.com \

View File

@@ -506,5 +506,6 @@ NAT网关成本¥100/月,对初创团队是一笔开销