Skip to main content

A question solver plugin for OVOS

Project description

HiveMind solver

exposes a HiveMind connection as a OVOS solver plugin

use cases:

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

image

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos_solver_hivemind_plugin-0.0.4a1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_solver_hivemind_plugin-0.0.4a1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file ovos_solver_hivemind_plugin-0.0.4a1.tar.gz.

File metadata

File hashes

Hashes for ovos_solver_hivemind_plugin-0.0.4a1.tar.gz
Algorithm Hash digest
SHA256 3d1b962228fa387d81f1cfc27b503387b318a5910bbfc9e38f5bff74c3fd50e6
MD5 e8658ed0381b8e6e50b6c98e2dd51228
BLAKE2b-256 985198afc394979a06c470ed5c97c0c08ae54eeaad1efa9a288b7504a3fe49d0

See more details on using hashes here.

File details

Details for the file ovos_solver_hivemind_plugin-0.0.4a1-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_solver_hivemind_plugin-0.0.4a1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1e8e75b4f4ed57d882eef02d1136ee936b26b9906c4ff08ed39c05617f94a99
MD5 de48118de4fcb31eb96dde138c97d1c1
BLAKE2b-256 513da0868a578a116376117bb5fb158ee17fdc36edebad112fedd65b25ae939b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page