┌─────────────────────────────────────────────────────────────────────┐ │ 🛠️ 技术栈确认单 │ ├─────────────────────────────────────────────────────────────────────┤ │ │ │ 后端核心: │ │ ├── 语言: Go 1.22+ (高性能服务) + Python 3.12 (AI Pipeline) │ │ ├── Web框架: Go: Gin Python: FastAPI │ │ ├── 数据库: PostgreSQL 16 (主库) + Redis 7 (缓存) │ │ ├── 向量数据库: Qdrant (记忆语义检索 - 比Milvus更轻量) │ │ ├── 消息队列: NATS (轻量高性能) │ │ ├── 文件存储: MinIO (S3兼容) │ │ ├── ORM: Go: GORM Python: SQLAlchemy 2.0 │ │ └── 迁移工具: Golang-migrate / Alembic │ │ │ │ 前端: │ │ ├── 框架: React 19 + TypeScript 5.x │ │ ├── 构建: Vite 6 │ │ ├── UI: TailwindCSS 4 + shadcn/ui │ │ ├── 状态管理: Zustand │ │ ├── 请求: TanStack Query + Axios │ │ ├── WebSocket: reconnecting-websocket (自动重连) │ │ └── PWA: vite-plugin-pwa │ │ │ │ AI/ML: │ │ ├── LLM API: OpenAI兼容接口 (支持多模型切换) │ │ ├── TTS: Edge-TTS (免费) + GPT-SoVITS (角色音色) │ │ ├── ASR: Faster-Whisper (本地) / Azure (云端) │ │ └── 嵌入模型: BGE-M3 / text-embedding-3-small │ │ │ │ 基础设施: │ │ ├── 容器: Docker + Docker Compose │ │ ├── 反向代理: Caddy (自动HTTPS) │ │ ├── 监控: Prometheus + Grafana (可选) │ │ └── CI/CD: GitHub Actions │ │ │ └─────────────────────────────────────────────────────────────────────┘