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.7a1

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.7a1
File Size Uploaded
ovos_solver_hivemind_plugin-0.0.7a1.tar.gz 8.5 kB Details

Built distribution (wheel)

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

Total release size: 13.9 kB

Release files / ovos_solver_hivemind_plugin-0.0.7a1.tar.gz

Download URL ovos_solver_hivemind_plugin-0.0.7a1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9b8a3ad9fe10a6e42a2128bb5c1d3a9d397bd50108168af1e52703269078ffd0
BLAKE2b-256 checksum
How to use checksums
0bfca8499d1e3a9e08321fdf9e290289804e2d6f47a6e72f97bf9b06b31c36e8
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.7a1-py3-none-any.whl

Download URL ovos_solver_hivemind_plugin-0.0.7a1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc3481447f2e3e6fb5a6f8d0371d9df546add18a8d730a5eecec0435619a43ff
BLAKE2b-256 checksum
How to use checksums
de69e0340cc9e9bf1e33ab2a909fdf69c8672ec1e29dfa66a2f8195dd00b5991
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