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

@@ -580,5 +580,6 @@ df['creatinine'] = pd.to_numeric(df['creatinine'], errors='coerce')

View File

@@ -995,5 +995,6 @@ export const aiController = new AIController();

View File

@@ -1329,5 +1329,6 @@ npm install react-markdown

View File

@@ -237,5 +237,6 @@ FMA___基线 | FMA___1个月 | FMA___2个月

View File

@@ -395,5 +395,6 @@ formula = "FMA总分0-100 / 100"

View File

@@ -229,5 +229,6 @@ async handleFillnaMice(request, reply) {

View File

@@ -201,5 +201,6 @@ method: 'mean' | 'median' | 'mode' | 'constant' | 'ffill' | 'bfill'

View File

@@ -652,5 +652,6 @@ import { logger } from '../../../../common/logging/index.js';

View File

@@ -455,5 +455,6 @@ import { ChatContainer } from '@/shared/components/Chat';

View File

@@ -365,5 +365,6 @@ const initialMessages = defaultMessages.length > 0 ? defaultMessages : [{

View File

@@ -653,5 +653,6 @@ http://localhost:5173/data-cleaning/tool-c

View File

@@ -441,5 +441,6 @@ Docs: docs/03-业务模块/DC-数据清洗整理/06-开发记录/DC模块重建

View File

@@ -314,5 +314,6 @@ ConflictDetectionService // 冲突检测(字段级对比)

View File

@@ -478,5 +478,6 @@ Tool B后端代码**100%复用**了平台通用能力层,无任何重复开发

View File

@@ -255,5 +255,6 @@ $ node scripts/check-dc-tables.mjs

View File

@@ -488,5 +488,6 @@ ${fields.map((f, i) => `${i + 1}. ${f.name}${f.desc}`).join('\n')}