18 lines
520 B
Desktop File
18 lines
520 B
Desktop File
[Unit]
|
|
Description=Telegram-поиск: модель эмбеддингов в памяти (векторы запросов tg search/report за доли секунды)
|
|
|
|
[Service]
|
|
User=astra
|
|
Group=astra
|
|
# сокет /run/tg-embed/embed.sock, только astra (0700 каталог, 0600 сокет)
|
|
RuntimeDirectory=tg-embed
|
|
RuntimeDirectoryMode=0700
|
|
ExecStart=/opt/tg-export/venv/bin/python /opt/tg-export/tgrag.py serve
|
|
Restart=on-failure
|
|
RestartSec=30
|
|
Nice=5
|
|
MemoryMax=1500M
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|