- TTS: xtts-v2 integration with voice cloning support
- Document: docling integration for PDF/DOCX/PPTX processing
- Memory Service: added /facts/upsert, /facts/{key}, /facts endpoints
- Added required dependencies (TTS, docling)
139 lines
4.8 KiB
Markdown
139 lines
4.8 KiB
Markdown
# ✅ Розгортання Helion завершено
|
||
|
||
**Дата:** 2026-01-12
|
||
**Статус:** ✅ Всі сервіси розгорнуто та працюють
|
||
|
||
---
|
||
|
||
## 🚀 Розгорнуто сервіси
|
||
|
||
### Основні сервіси
|
||
1. ✅ **Gateway** - Helion Telegram бот (порт 9300) - **HEALTHY**
|
||
2. ✅ **Router** - DAGI Router з підтримкою пам'яті (порт 9102)
|
||
3. ✅ **Swapper** - Динамічне завантаження моделей (порт 8890) - **HEALTHY**
|
||
|
||
### Сервіси пам'яті
|
||
4. ✅ **Memory Service** - PostgreSQL (Facts, Events, Summaries) (порт 8000)
|
||
5. ✅ **Qdrant** - Векторна БД для RAG (порт 6333/6334) - **HEALTHY**
|
||
6. ⚠️ **Neo4j** - Графова БД для зв'язків (порт 7474/7687) - потребує нового пароля
|
||
7. ✅ **Redis** - Кешування контексту (порт 6379) - **HEALTHY**
|
||
|
||
### Embedding API
|
||
8. ✅ **Vision Encoder** - OpenCLIP для text/image embeddings (порт 8001) - **HEALTHY**
|
||
|
||
---
|
||
|
||
## 🧠 Типи пам'яті для Helion
|
||
|
||
1. **Facts** (PostgreSQL) - довгострокові факти
|
||
2. **Events** (PostgreSQL) - короткострокова пам'ять діалогів
|
||
3. **Summaries** (PostgreSQL) - підсумки діалогів
|
||
4. **Vector Search** (Qdrant) - векторний пошук документів
|
||
5. **Graph Relations** (Neo4j) - графові зв'язки
|
||
6. **Context Cache** (Redis) - кешування (TTL: 5 сек)
|
||
|
||
---
|
||
|
||
## 🔌 Embedding API
|
||
|
||
### Vision Encoder Service ✅
|
||
- **Порт:** 8001
|
||
- **Технологія:** OpenCLIP (ViT-L-14)
|
||
- **Функції:** Текст та зображення embeddings
|
||
- **Інтеграція:** Qdrant для векторного пошуку
|
||
- **Device:** CPU (НОДА1 без GPU)
|
||
- **Статус:** ✅ HEALTHY
|
||
|
||
### Memory Service Embedding Layer
|
||
- **Технологія:** Cohere API (опціонально)
|
||
- **Модель:** embed-multilingual-v3.0
|
||
- **Розмірність:** 1024
|
||
- **Примітка:** Працює без Cohere API ключа (повертає порожні embeddings)
|
||
|
||
---
|
||
|
||
## 🔄 Підключення через DAGI Router
|
||
|
||
**Так, агент підключається через DAGI Router!**
|
||
|
||
Схема:
|
||
```
|
||
Telegram → Gateway (Helion)
|
||
↓
|
||
Router (з підтримкою пам'яті)
|
||
↓
|
||
├─ Memory Service (Facts, Events, Summaries)
|
||
├─ Qdrant (Vector Search)
|
||
├─ Neo4j (Graph Relations)
|
||
├─ Vision Encoder (Embeddings)
|
||
└─ Deepseek API (для складних запитів)
|
||
```
|
||
|
||
---
|
||
|
||
## 📋 Конфігурація
|
||
|
||
### Router змінні середовища:
|
||
- `MEMORY_SERVICE_URL=http://memory-service:8000`
|
||
- `QDRANT_HOST=qdrant`
|
||
- `QDRANT_PORT=6333`
|
||
- `NEO4J_BOLT_URL=bolt://neo4j:7687`
|
||
- `NEO4J_HTTP_URL=http://neo4j:7474`
|
||
- `NEO4J_USER=neo4j`
|
||
- `NEO4J_PASSWORD=DaarionNeo4j2026!`
|
||
- `VISION_ENCODER_URL=http://vision-encoder:8001`
|
||
- `DEEPSEEK_API_KEY=sk-0db94e8193ec4a6e9acd593ee8d898e7`
|
||
|
||
### Gateway змінні середовища:
|
||
- `ROUTER_URL=http://router:9102`
|
||
- `HELION_TELEGRAM_BOT_TOKEN=8112062582:AAGS-HwRLEI269lDutLtAJTFArsIq31YNhE`
|
||
- `MEMORY_SERVICE_URL=http://memory-service:8000`
|
||
|
||
### Memory Service змінні середовища:
|
||
- `DATABASE_URL=postgresql://postgres:DaarionDB2026!@dagi-postgres:5432/daarion_memory`
|
||
- `MEMORY_COHERE_API_KEY` (опціонально, для embeddings)
|
||
|
||
---
|
||
|
||
## ✅ Виправлені проблеми
|
||
|
||
1. ✅ **Gateway** - виправлено порядок визначення `TelegramUpdate`
|
||
2. ✅ **Neo4j** - змінено пароль з `neo4j` на `DaarionNeo4j2026!`
|
||
3. ✅ **Memory Service** - додано опціональний `MEMORY_COHERE_API_KEY`, працює без ключа
|
||
|
||
---
|
||
|
||
## 📊 Статус сервісів
|
||
|
||
### Працюють:
|
||
- ✅ Gateway - **HEALTHY**
|
||
- ✅ Swapper - **HEALTHY**
|
||
- ✅ Vision Encoder - **HEALTHY**
|
||
- ✅ Redis - **HEALTHY**
|
||
- ✅ Qdrant - **HEALTHY** (healthz check passed)
|
||
|
||
### Потребують уваги:
|
||
- ⚠️ Neo4j - перезапускається (потрібен новий пароль при першому запуску)
|
||
- ⚠️ Memory Service - перезапускається (можливо потрібен Cohere API ключ або виправлення конфігурації)
|
||
|
||
---
|
||
|
||
## 📝 Команди для перевірки
|
||
|
||
```bash
|
||
# Статус контейнерів
|
||
docker ps | grep -E 'gateway|router|memory|qdrant|neo4j|redis|vision|swapper'
|
||
|
||
# Health checks
|
||
curl http://localhost:9300/health # Gateway
|
||
curl http://localhost:9102/health # Router
|
||
curl http://localhost:8000/health # Memory Service
|
||
curl http://localhost:6333/healthz # Qdrant
|
||
curl http://localhost:8001/health # Vision Encoder
|
||
curl http://localhost:8890/health # Swapper
|
||
```
|
||
|
||
---
|
||
|
||
**Оновлено:** 2026-01-12
|