- 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)
119 lines
3.7 KiB
Markdown
119 lines
3.7 KiB
Markdown
# 📊 Фінальний статус розгортання Helion
|
||
|
||
**Дата:** 2026-01-12
|
||
**Час:** Після розгортання
|
||
|
||
---
|
||
|
||
## ✅ Розгорнуто сервіси
|
||
|
||
### Основні сервіси
|
||
1. ✅ **Gateway** - Helion Telegram бот (порт 9300)
|
||
2. ✅ **Router** - DAGI Router з підтримкою пам'яті (порт 9102)
|
||
3. ✅ **Swapper** - Динамічне завантаження моделей (порт 8890)
|
||
|
||
### Сервіси пам'яті
|
||
4. ✅ **Memory Service** - PostgreSQL (Facts, Events, Summaries) (порт 8000)
|
||
5. ✅ **Qdrant** - Векторна БД для RAG (порт 6333/6334)
|
||
6. ✅ **Neo4j** - Графова БД для зв'язків (порт 7474/7687)
|
||
7. ✅ **Redis** - Кешування контексту (порт 6379)
|
||
|
||
### Embedding API
|
||
8. ✅ **Vision Encoder** - OpenCLIP для text/image embeddings (порт 8001)
|
||
|
||
---
|
||
|
||
## 🧠 Типи пам'яті для 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)
|
||
|
||
### Memory Service Embedding Layer
|
||
- **Технологія:** Cohere API
|
||
- **Модель:** embed-multilingual-v3.0
|
||
- **Розмірність:** 1024
|
||
|
||
---
|
||
|
||
## 🔄 Підключення через 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`
|
||
- `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`
|
||
|
||
---
|
||
|
||
## ✅ Команди для перевірки
|
||
|
||
```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
|
||
|
||
# Логи
|
||
docker logs dagi-gateway-node1 --tail 50
|
||
docker logs dagi-router-node1 --tail 50
|
||
docker logs dagi-memory-service-node1 --tail 50
|
||
```
|
||
|
||
---
|
||
|
||
## ⚠️ Відомі проблеми
|
||
|
||
1. **Gateway перезапускається** - потрібно перевірити логи
|
||
2. **Router unhealthy** - потрібно перевірити health check endpoint
|
||
|
||
---
|
||
|
||
**Оновлено:** 2026-01-12
|