From a459b7a393af4eae9d05134c9c82b8826e8c30b7 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 31 Aug 2024 22:11:39 -0700 Subject: [PATCH] R&R --- README.md | 9 +++++++++ requirements.txt | 3 +++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 43a0088..e662dc4 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ Along with network testing, this bot has a lot of other fun features, like simpl The bot is also capable of using dual radio/nodes, so you can monitor two networks at the same time and send messages to nodes using the same `bbspost @nodeNumber #message` or `bbspost @nodeShportName #message` function. There is a small message board to fit in the constraints of Meshtastic for posting bulletin messages with `bbspost $subject #message`. +Look up data using wiki results or interact with [Ollama](https://ollama.com) LLM AI + The bot will report on anyone who is getting close to the configured lat/long, if in a remote location. Store and forward-like message re-play with `messages`, and there is a repeater module for dual radio bots to cross post messages. Messages are also logged locally to disk. @@ -37,6 +39,7 @@ Full list of commands for the bot. - `wxa` and `wxalert` return NOAA alerts. Short title or expanded details - `joke` tells a joke - `wiki:` search wikipedia, return the first few sentances of first result if a match + - `ask:` ask Ollama LLM AI for a response - `messages` Replay the last messages heard, like Store and Forward - `motd` or to set the message `motd $New Message Of the day` - `lheard` returns the last 5 heard nodes with SNR, can also use `sitrep` @@ -195,6 +198,12 @@ pip install openmeteo_requests pip install retry_requests pip install numpy ``` +The following is for the Ollama LLM +``` +pip install langchain +pip install langchain-ollama +pip install ollama +``` To enable emoji in the Debian console, install the fonts `sudo apt-get install fonts-noto-color-emoji` diff --git a/requirements.txt b/requirements.txt index 8592490..4a75eae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,4 +13,7 @@ numpy geopy schedule wikipedia +langchain +langchain-ollama +ollama