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
- Host: GitHub
- URL: https://github.com/alertua/air_raid_threat_reporter
- Owner: ALERTua
- Created: 2024-01-08T15:55:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-14T10:49:04.000Z (about 1 year ago)
- Last Synced: 2024-09-14T21:14:01.742Z (about 1 year ago)
- Topics: ollama, ukraine, ukraine-invasion, ukrainewar
- Language: Python
- Homepage: https://ollamahub.com/m/alert/ukraine-safety-assistant:latest
- Size: 1.03 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Authors: AUTHORS.rst
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