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

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

Built distribution (wheel)

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

Total release size: 14.4 kB

Release files / ovos_solver_hivemind_plugin-0.0.10a1.tar.gz

Download URL ovos_solver_hivemind_plugin-0.0.10a1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1b77b5901d54ff585a929ce9f5d137c8e86c0bd0f566281372b2fb703fb7a876
BLAKE2b-256 checksum
How to use checksums
72d02de296df426e5ec6b20a115b6b41c2b9cdd98a2dd39c25ca0953c65b2022
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.10a1-py3-none-any.whl

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