提供对话上下文索引

This commit is contained in:
2026-04-10 12:47:39 +00:00
parent 8e39e609cc
commit d4e6142131
10 changed files with 267 additions and 90 deletions

View File

@@ -1,4 +1,18 @@
services:
faiss:
build:
context: ../faiss
container_name: faiss-service
ports:
- "8451:8000"
volumes:
- ../faiss/indexes:/app/indexes # 持久化索引目录
- ../faiss/.env:/app/.env # 可选:挂载配置
restart: unless-stopped
environment:
- FAISS_DIM=1024
- APP_PORT=8000
redis:
image: redis:7-alpine
container_name: ai-chat-redis
@@ -60,12 +74,10 @@ services:
- .env
volumes:
- ./configs/ai-chat-service.yaml:/app/config.yaml:ro
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "50055:50055"
depends_on:
- ai-chat-redis
- faiss
- tokenizer
- sensitive-filter
- keywords-filter