fix and adjust main dashboard ai insight

This commit is contained in:
Alberto-Audrix committed 2026-09-17 14:27:08 +07:00
1 parent 18790ab8f6
commit 68e0d1a0bb
27 files changed
+360 -107

No files matched your search

+3 -3
View File
@@ -1,12 +1,12 @@
# Copy host "AI Insight/chroma_db" into the running rag container volume.
# Copy host "ai-insight/chroma_db" into the running rag container volume.
# Named volume rag-chroma mounts over the image-baked index — seed after first up.
$ErrorActionPreference = "Stop"
$Root = Split-Path -Parent $PSScriptRoot
$Src = Join-Path $Root "AI Insight\chroma_db"
$Src = Join-Path $Root "ai-insight\chroma_db"
$Cid = if ($env:RAG_CONTAINER) { $env:RAG_CONTAINER } else { "dashboard-cpsp-rag" }
if (-not (Test-Path $Src)) {
Write-Error "Missing $Src — run: cd 'AI Insight'; python populate_db.py"
Write-Error "Missing $Src — run: cd ai-insight; python populate_db.py"
}
docker inspect $Cid | Out-Null
if ($LASTEXITCODE -ne 0) {