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
72 lines
1.3 KiB
PowerShell
72 lines
1.3 KiB
PowerShell
#!/usr/bin/env pwsh
|
||
# REDCap Docker环境启动脚本
|
||
# 版本:v1.0
|
||
# 日期:2026-01-01
|
||
|
||
Write-Host "🚀 启动REDCap Docker环境..." -ForegroundColor Cyan
|
||
Write-Host ""
|
||
|
||
# 切换到项目目录
|
||
$ScriptDir = Split-Path -Parent $PSCommandPath
|
||
$ProjectDir = Split-Path -Parent $ScriptDir
|
||
Set-Location $ProjectDir
|
||
|
||
# 检查Docker是否运行
|
||
$dockerRunning = docker info 2>&1 | Select-String "Server Version"
|
||
if (-not $dockerRunning) {
|
||
Write-Host "❌ Docker未运行。请先启动Docker Desktop。" -ForegroundColor Red
|
||
exit 1
|
||
}
|
||
|
||
# 启动容器
|
||
docker-compose up -d
|
||
|
||
if ($LASTEXITCODE -eq 0) {
|
||
Write-Host ""
|
||
Write-Host "⏳ 等待服务就绪(10秒)..." -ForegroundColor Yellow
|
||
Start-Sleep -Seconds 10
|
||
|
||
Write-Host ""
|
||
Write-Host "✅ REDCap环境已启动!" -ForegroundColor Green
|
||
Write-Host ""
|
||
Write-Host "📋 服务访问地址:" -ForegroundColor Cyan
|
||
Write-Host " • REDCap: http://localhost:8080" -ForegroundColor White
|
||
Write-Host " • phpMyAdmin: http://localhost:8081" -ForegroundColor White
|
||
Write-Host ""
|
||
Write-Host "📊 容器状态:" -ForegroundColor Cyan
|
||
docker-compose ps
|
||
Write-Host ""
|
||
} else {
|
||
Write-Host "❌ 启动失败!" -ForegroundColor Red
|
||
Write-Host "请检查日志:.\scripts\logs-redcap.ps1" -ForegroundColor Yellow
|
||
exit 1
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|