HiveMind solver
exposes a HiveMind connection as a OVOS solver plugin
use cases:
- allow your apps to get responses from a remote HiveMind
- expose HiveMind to any OpenAI compatible UI, via ovos-persona-server
- Integrate HiveMind/OVOS into a MOS (Mixture Of Solvers)
Install
pip install ovos-solver-hivemind-plugin
Setup
You need to register the solver in the HiveMind server
$ hivemind-core add-client
Credentials added to database!
Node ID: 2
Friendly Name: HiveMind-Node-2
Access Key: 5a9e580a2773a262cbb23fe9759881ff
Password: 9b247ca66c7cd2b6388ad49ca504279d
Encryption Key: 4185240103de0770
WARNING: Encryption Key is deprecated, only use if your client does not support password
And then set the identity file in the satellite device (where the solver will run)
$ hivemind-client set-identity --key 5a9e580a2773a262cbb23fe9759881ff --password 9b247ca66c7cd2b6388ad49ca504279d --host 0.0.0.0 --port 5678 --siteid test
identity saved: /home/miro/.config/hivemind/_identity.json
check the created identity file if you like
$ cat ~/.config/hivemind/_identity.json
{
"password": "9b247ca66c7cd2b6388ad49ca504279d",
"access_key": "5a9e580a2773a262cbb23fe9759881ff",
"site_id": "test",
"default_port": 5678,
"default_master": "ws://0.0.0.0"
}
test that a connection is possible using the identity file
$ hivemind-client test-identity
(...)
2024-05-20 21:22:28.003 - OVOS - hivemind_bus_client.client:__init__:112 - INFO - Session ID: 34d75c93-4e65-4ea9-b5f4-87169dcfda01
(...)
== Identity successfully connected to HiveMind!
Usage
For usage with any solver framework, such as persona, use "ovos-solver-hivemind-plugin" for the solver id
Standalone usage
from ovos_hivemind_solver import HiveMindSolver
bot = HiveMindSolver()
bot.connect() # connection info from identity file
print(bot.spoken_answer("what is the speed of light?"))
Credits
This work was sponsored by VisioLab, part of Royal Dutch Visio, is the test, education, and research center in the field of (innovative) assistive technology for blind and visually impaired people and professionals. We explore (new) technological developments such as Voice, VR and AI and make the knowledge and expertise we gain available to everyone.
Metadata
Release files for ovos-solver-hivemind-plugin 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos-solver-hivemind-plugin-0.0.3.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_solver_hivemind_plugin-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / ovos-solver-hivemind-plugin-0.0.3.tar.gz
| Download URL | ovos-solver-hivemind-plugin-0.0.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17b4434fca21d71f9261e6aaeb93c50b0a4f38247ffefa01993c1285c6d59534
|
|
BLAKE2b-256 checksum How to use checksums |
b17eede34186cd302fbc084c444f7a086acf0e65c5cc83ff1afa412ecd31601b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / ovos_solver_hivemind_plugin-0.0.3-py3-none-any.whl
| Download URL | ovos_solver_hivemind_plugin-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce6581146c3bc9dc44d92e21edd2f4706fd1c2f035375655b3357c135424fdc8
|
|
BLAKE2b-256 checksum How to use checksums |
671216c8aefd1bde59fbdfefbf7eb37ad0dc483112ad7307851abbc8871fa674
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|