Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-solver-hivemind-plugin

Exposes a HiveMind connection as an OVOS solver plugin.

A solver plugin is a Q&A backend: given a question, return a spoken answer. This plugin sends the question to a remote HiveMind hub, waits for the hub's speak responses, and returns them as the answer. Any application that uses OVOS solvers can use a HiveMind hub as its answering backend.

Use cases:

Install

pip install ovos-solver-hivemind-plugin

Quickstart

1. Register a client on the HiveMind hub

On the machine running hivemind-core:

hivemind-core add-client
# note the Access Key and Password

2. Set the identity on the client device

hivemind-client set-identity \
  --key <access_key> \
  --password <password> \
  --host <hub_ip> --port 5678 --siteid solver

Verify:

hivemind-client test-identity
# should print: == Identity successfully connected to HiveMind!

3. Use the solver

from ovos_hivemind_solver import HiveMindSolver

solver = HiveMindSolver(config={"autoconnect": True})
print(solver.spoken_answer("what is the speed of light?"))

Or connect manually:

solver = HiveMindSolver()
solver.connect()   # uses the identity file
print(solver.spoken_answer("what is the capital of France?"))

Configuration

Key Type Default Description
autoconnect bool false Connect to HiveMind automatically at construction time.
useragent string "ovos-hivemind-solver" User-agent string sent to the hub.
site_id string value from identity file Site ID for the HiveMind connection.
lang string "en-us" Default language when none is in context.

Connection credentials (host, port, key, password) come from the identity file set with hivemind-client set-identity. They cannot be passed inline.

Using with ovos-persona

Add it as a solver in a persona JSON file:

{
  "name": "HiveMind",
  "solvers": [
    {
      "module": "ovos-solver-hivemind-plugin",
      "ovos-solver-hivemind-plugin": {
        "autoconnect": true
      }
    }
  ]
}

Using with ovos-persona-server

Start ovos-persona-server with a persona that includes this solver. Any OpenAI-compatible client can then query HiveMind via the persona server's REST API.

Documentation

Credits

This work was sponsored by VisioLab, part of Royal Dutch Visio, the research and education center for assistive technology for blind and visually impaired people.

License

Apache 2.0.

Metadata

Release files for ovos-solver-hivemind-plugin 0.0.8a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-solver-hivemind-plugin 0.0.8a1
File Size Uploaded
ovos_solver_hivemind_plugin-0.0.8a1.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-solver-hivemind-plugin 0.0.8a1
File Interpreter ABI Platform
ovos_solver_hivemind_plugin-0.0.8a1-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / ovos_solver_hivemind_plugin-0.0.8a1.tar.gz

Download URL ovos_solver_hivemind_plugin-0.0.8a1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
29c5fd3d55cdb71e35c23517b12b5e322a4add5e89f2f4c8ed032f35dcb8b3a6
BLAKE2b-256 checksum
How to use checksums
7085e0a6a6df62d5668bfcfc1252c2f8c8ba585fce85297683efe91ee3cd1cfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / ovos_solver_hivemind_plugin-0.0.8a1-py3-none-any.whl

Download URL ovos_solver_hivemind_plugin-0.0.8a1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a84c71e94d9e9798d9f30a6cfef9fccd6c09a700d095c3f85ab2dd5a9ddff524
BLAKE2b-256 checksum
How to use checksums
af679c117d948b6f4b1cba6bf50da2f51d01cc34b31d483e8387172205b44a81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page