feat: ai-service를 ds923에서 맥미니로 이전
- ChromaDB → Qdrant 전환 (맥미니 기존 인스턴스, tk_qc_issues 컬렉션) - Ollama 임베딩/텍스트 생성 URL 분리 (임베딩: 맥미니, 텍스트: GPU서버) - MLX fallback 제거, Ollama 단일 경로로 단순화 - ds923 docker-compose에서 ai-service 제거 - gateway/system3-web nginx: ai-service 프록시를 ai.hyungi.net 경유로 변경 - resolver + 변수 기반 proxy_pass로 런타임 DNS 해석 (컨테이너 시작 실패 방지) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,16 +2,22 @@ from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
OLLAMA_BASE_URL: str = "https://gpu.hyungi.net"
|
||||
# GPU서버 Ollama (텍스트 생성)
|
||||
OLLAMA_BASE_URL: str = "http://192.168.1.186:11434"
|
||||
OLLAMA_TEXT_MODEL: str = "qwen3.5:9b-q8_0"
|
||||
OLLAMA_EMBED_MODEL: str = "bge-m3"
|
||||
OLLAMA_TIMEOUT: int = 120
|
||||
|
||||
MLX_BASE_URL: str = "https://llm.hyungi.net"
|
||||
MLX_TEXT_MODEL: str = "/Users/hyungi/mlx-models/Qwen3.5-27B-4bit"
|
||||
# 맥미니 Ollama (임베딩) — OrbStack: host.internal / Docker Desktop: host.docker.internal
|
||||
OLLAMA_EMBED_URL: str = "http://host.internal:11434"
|
||||
OLLAMA_EMBED_MODEL: str = "bge-m3"
|
||||
|
||||
DB_HOST: str = "mariadb"
|
||||
DB_PORT: int = 3306
|
||||
# 맥미니 Qdrant (기존 인스턴스, 회사 전용 컬렉션)
|
||||
QDRANT_URL: str = "http://host.internal:6333"
|
||||
QDRANT_COLLECTION: str = "tk_qc_issues"
|
||||
|
||||
# ds923 MariaDB (Tailscale)
|
||||
DB_HOST: str = "100.71.132.52"
|
||||
DB_PORT: int = 30306
|
||||
DB_USER: str = "hyungi_user"
|
||||
DB_PASSWORD: str = ""
|
||||
DB_NAME: str = "hyungi"
|
||||
@@ -19,8 +25,8 @@ class Settings(BaseSettings):
|
||||
SECRET_KEY: str = ""
|
||||
ALGORITHM: str = "HS256"
|
||||
|
||||
SYSTEM1_API_URL: str = "http://system1-api:3005"
|
||||
CHROMA_PERSIST_DIR: str = "/app/data/chroma"
|
||||
# ds923 System1 API (Tailscale)
|
||||
SYSTEM1_API_URL: str = "http://100.71.132.52:30005"
|
||||
METADATA_DB_PATH: str = "/app/data/metadata.db"
|
||||
|
||||
class Config:
|
||||
|
||||
Reference in New Issue
Block a user