An open API service indexing awesome lists of open source software.

https://github.com/alertua/air_raid_threat_reporter

Air Raid Threat Reporter
https://github.com/alertua/air_raid_threat_reporter

ollama ukraine ukraine-invasion ukrainewar

Last synced: 8 months ago
JSON representation

Air Raid Threat Reporter

Awesome Lists containing this project

README

          

Air Raid Threat Reporter
========================
Filters Telegram air raid threat channels by sending each message to Ollama AI for it to evaluate,
whether the message contains an actual threat to a city.
Redirects the filtered messages to a Telegram chat.

-----------
Preparation
-----------
- Deploy https://hub.docker.com/r/ollama/ollama
- Optionally: Deploy https://github.com/ollama-webui/ollama-webui/pkgs/container/ollama-webui
- Read through `Modelfile `_. and use it to create a model via GUI or via CLI, or import it from Ollama Hub https://ollamahub.com/m/alert/ukraine-safety-assistant:latest
(You can replace the city name and the base model, obviously.)
- Create `.env` file from `.env.example `_

------
Deploy
------
- Deploy Dockerfile (or image from ``ghcr.io/alertua/air_raid_threat_reporter:latest``) with volume ``/data``, put yout ``.env`` there. Alternatively, fill the Environment Variables.
- The first launch must be interactive (``-it``), to authenticate and create .session files in the volume folder. If the container is already created, then it's ``docker start -a ukraine-safety-assistant``. If the container is already started, you can attach to it with ``docker attach ukraine-safety-assistant``

------
GitHub
------
https://github.com/ALERTua/air_raid_threat_reporter