update ai insight migration for all page
This commit is contained in:
1 parent
07d36081ce
commit
18790ab8f6
69 files changed
+9457
-399
No files matched your search
@@ -29,6 +29,38 @@ services:
|
||||
ports:
|
||||
- "127.0.0.1:15432:5432"
|
||||
|
||||
rag:
|
||||
image: dashboard-cpsp-rag
|
||||
build:
|
||||
context: "./AI Insight"
|
||||
dockerfile: Dockerfile
|
||||
container_name: dashboard-cpsp-rag
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:5002:5002"
|
||||
environment:
|
||||
RAG_PORT: "5002"
|
||||
HF_HUB_OFFLINE: "1"
|
||||
TRANSFORMERS_OFFLINE: "1"
|
||||
CHROMA_DB_DIR: chroma_db
|
||||
EMBEDDING_MODEL_NAME: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
|
||||
volumes:
|
||||
# Empty named volume hides image-baked index — run scripts/seed_rag_chroma.* after first up.
|
||||
- rag-chroma:/app/chroma_db
|
||||
networks:
|
||||
- dashboard-cpsp-network
|
||||
|
||||
llm:
|
||||
image: ollama/ollama:latest
|
||||
container_name: dashboard-cpsp-llm
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:11434:11434"
|
||||
volumes:
|
||||
- llm-ollama:/root/.ollama
|
||||
networks:
|
||||
- dashboard-cpsp-network
|
||||
|
||||
api:
|
||||
image: dashboard-cpsp-api
|
||||
build:
|
||||
@@ -73,6 +105,10 @@ services:
|
||||
PUSAT_BASE_URL: ${PUSAT_BASE_URL:-}
|
||||
PUSAT_API_KEY: ${PUSAT_API_KEY:-}
|
||||
SITE_API_BASE_URL: ${SITE_API_BASE_URL:-}
|
||||
RAG_SERVICE_URL: ${RAG_SERVICE_URL:-http://rag:5002}
|
||||
OLLAMA_BASE_URL: ${OLLAMA_BASE_URL:-http://llm:11434}
|
||||
LLM_MODEL_NAME: ${LLM_MODEL_NAME:-qwen2.5:3b}
|
||||
LLM_TIMEOUT_SECONDS: ${LLM_TIMEOUT_SECONDS:-1200}
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
@@ -80,6 +116,10 @@ services:
|
||||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
rag:
|
||||
condition: service_started
|
||||
llm:
|
||||
condition: service_started
|
||||
networks:
|
||||
- dashboard-cpsp-network
|
||||
healthcheck:
|
||||
@@ -171,3 +211,7 @@ volumes:
|
||||
driver: local
|
||||
api-media:
|
||||
driver: local
|
||||
rag-chroma:
|
||||
driver: local
|
||||
llm-ollama:
|
||||
driver: local
|
||||
Reference in new issue
Block a user