faiss server

This commit is contained in:
2026-04-10 11:55:00 +00:00
parent bc82e3e708
commit 8e39e609cc
30 changed files with 1271 additions and 1048 deletions

13
faiss/docker-compose.yml Normal file
View File

@@ -0,0 +1,13 @@
services:
faiss:
build: .
container_name: faiss-service
ports:
- "8451:8000"
volumes:
- ./faiss_index.bin:/app/faiss_index.bin # 持久化索引文件
- ./.env:/app/.env # 可选:挂载配置
restart: unless-stopped
environment:
- FAISS_DIM=1024
- APP_PORT=8000