This release is a pre-release and may not be stable for production use.
OVOS Common Query Framework
The OVOS Common Query Framework answers questions. It gathers answers from several skills and picks the best one.
Common Query is only as fast as the slowest CommonQuerySkill. Latency depends on which skills you install.
Features
- Utterance query type detection: If the user utterance does not resemble a question (for example, it has no "who", "what", or "when"), the system does not try to answer.
- Skill availability check: If no common query skills are installed, the system does not try to respond. It issues queries only when a matching skill is available.
- Answer selection: A reranker plugin can evaluate multiple skill responses and select the most relevant one.
- Bad answer discarding: A reranker with a minimum score threshold (
min_score) discards poor or irrelevant answers. - Timeout for late answers: The system stops waiting for answers after 2 seconds. It ignores any response that arrives after this time.
Install
This plugin ships with ovos-core by default. You do not need to install it explicitly.
pip install ovos-common-query-pipeline-plugin
Configuration
Reranker (optional)
Rerankers, also called MultipleChoiceSolvers, are optional. Install one explicitly to rank and select the most relevant response from multiple common query skills (for example, Wolfram Alpha or Wikipedia).
This example configures a reranker:
"intents": {
"common_query": {
"min_self_confidence": 0.5,
"min_reranker_score": 0.5,
"reranker": "ovos-flashrank-reranker-plugin",
"ovos-flashrank-reranker-plugin": {
"model": "ms-marco-TinyBERT-L-2-v2"
}
}
}
Notes:
- A reranker plugin is optional. Install it explicitly for the framework to use it.
- The example uses ovos-flashrank-reranker-plugin with the
ms-marco-TinyBERT-L-2-v2model. Other plugins and models work too, depending on your use case and performance needs. - Reranking may add latency on resource-constrained devices, such as a Raspberry Pi. Adjust the settings to match the device capabilities and the expected response time.
Related projects
- OpenVoiceOS/ovos-core — the assistant this plugin ships with
- OpenVoiceOS/ovos-plugin-manager — loads this plugin as an
opm.pipelineentry point - OpenVoiceOS/ovos-flashrank-reranker-plugin — example reranker plugin
License
Apache-2.0
Metadata
Release files for ovos-common-query-pipeline-plugin 1.1.20a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ovos_common_query_pipeline_plugin-1.1.20a1.tar.gz | 19.8 kB | Without provenance | Details for ovos_common_query_pipeline_plugin-1.1.20a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ovos_common_query_pipeline_plugin-1.1.20a1-py3-none-any.whl | Python 3 | none | any | Details for ovos_common_query_pipeline_plugin-1.1.20a1-py3-none-any.whl |
Total release size: 44.5 kB
Release files / ovos_common_query_pipeline_plugin-1.1.20a1.tar.gz
| Download URL | ovos_common_query_pipeline_plugin-1.1.20a1.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cc29d9ea51ef45ce68015ed911063b53ac8f0d48b67d0c2f4cfc6b7a0ce09ba
|
|
BLAKE2b-256 checksum How to use checksums |
1e3c047dfc4732071806d2c324777c54bd07bbb5aea5511e337b738e0ce32d67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / ovos_common_query_pipeline_plugin-1.1.20a1-py3-none-any.whl
| Download URL | ovos_common_query_pipeline_plugin-1.1.20a1-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17a517299071cc1db0414e55012ef54756c8d40bf1223c793b479bc1c456f86d
|
|
BLAKE2b-256 checksum How to use checksums |
3285e3a53cb670cacc8923f52f907292a8956cb674ddd878cf63d3121301a30f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for ovos-common-query-pipeline-plugin 1.1.20a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.