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

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.9a1
File Size Uploaded
ovos_solver_hivemind_plugin-0.0.9a1.tar.gz 9.0 kB Details

Built distribution (wheel)

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

Total release size: 14.4 kB

Release files / ovos_solver_hivemind_plugin-0.0.9a1.tar.gz

Download URL ovos_solver_hivemind_plugin-0.0.9a1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e356441d145a37ff78c1e7b4b12dad7c0a36d82df32405b6364bae541cc8ace5
BLAKE2b-256 checksum
How to use checksums
b2a03cc693ba1d9d763d6c68844618ecff0e6cb86bc592c672b3949a70240c3e
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.9a1-py3-none-any.whl

Download URL ovos_solver_hivemind_plugin-0.0.9a1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9bae3765ff4198c30eda569875e727ef6d4aa259fd43ffbc6f4e126f838d752a
BLAKE2b-256 checksum
How to use checksums
84f7c964b97214cf0f0842954cc6cdf890475b57d83bfd2d4e8e74ce456af9ad
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