This release is a pre-release and may not be stable for production use.
OVOS Model2Vec Intent Pipeline
An intent matching pipeline for OpenVoiceOS (OVOS), powered by the Model2Vec model for intent classification.
This plugin uses a pretrained Model2Vec model to classify natural language utterances into intent labels registered with the system (Adapt, Padatious, and plugin-specific labels). It only considers intents from loaded skills and ignores any labels from unregistered intents. This pipeline is ideal for use cases where other deterministic engines fail to provide a high-confidence match.
✨ Features
- ✅ Powered by Model2Vec for high-quality intent classification
- ✅ Plug-and-play integration with OVOS pipelines
- ✅ Model2Vec trained on GitLocalize exports
- ✅ English models in various sizes, distilled from Potion
- ✅ Multilingual model, distilled from LaBSE
- ✅ Syncs Adapt and Padatious intents dynamically at runtime
- ✅ Only considers intents from loaded skills, ignoring unregistered labels
💡 english models size ranges from 8MB to 150MB, the multilingual model (default) is over 500MB
📦 Installation
You can install the plugin via pip:
pip install ovos-m2v-pipeline
⚙️ Configuration
In your mycroft.conf:
{
"intents": {
"ovos-m2v-pipeline": {
"model": "Jarbas/ovos-model2vec-intents-LaBSE",
"conf_high": 0.7,
"conf_medium": 0.5,
"conf_low": 0.15,
"ignore_intents": []
}
}
}
model: Path to your pretrained Model2Vec model or huggingface repo.conf_xxx: Minimum confidence threshold for intent matching.ignore_intents: List of intents to ignore during matching.prototype_strategy: Scoring strategy for prototype mode ("max_over_all"default — back-compatible). See docs/strategies.md.prototype_top_k: Top-k cosines averaged by thetop_k_meanstrategy (default3).prototype_tau: Softmax temperature for thesoftmax_weightedstrategy (default0.1).
⚠️ The Model2Vec model is pretrained based on GitLocalize exports and cannot learn new skills dynamically.
🧠 Usage
The Model2VecIntentPipeline class integrates with the OVOS intent system. It:
- Receives an utterance (text).
- Predicts intent labels using the pretrained Model2Vec model.
- Filters out intents that are not part of the loaded skills.
- Returns a match for the highest-confidence intent from the list of valid intents.
🧪 Tips
- Tune
min_confto control the confidence threshold for intent matching. - Use the
ignore_intentslist to filter out specific problematic intent from predictions. - Syncing of Adapt and Padatious intents is done automatically at runtime via the OVOS message bus.
💡 pre-trained models available in this huggingface collection ovos-model2vec-intents
🛡 License
This project is licensed under the Apache 2.0 License.
Credits
The model2vec intent pipeline was first prototyped by TigreGótico under the ILENIA project for OpenVoiceOS and substantially extended — an embeddings-only mode and new models — through the NGI0 Commons Fund.
This project was funded by the Ministerio para la Transformación Digital y de la Función Pública and Plan de Recuperación, Transformación y Resiliencia - Funded by EU – NextGenerationEU within the framework of the project ILENIA with reference 2022/TL22/00215337
This project was funded through the NGI0 Commons Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement No 101135429.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ovos_m2v_pipeline-0.3.1a1.tar.gz.
File metadata
- Download URL: ovos_m2v_pipeline-0.3.1a1.tar.gz
- Upload date:
- Size: 36.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43c41be6ca373e565ccec6a8144a5aba80e2a031a7a0bfee4591636ca575438a
|
|
| MD5 |
654ea62336a31684eb9bc8cf874eac9b
|
|
| BLAKE2b-256 |
54e17d846441a573bd8fc2d433a3550336d76e17b261df7ea27f080a6e698e03
|
File details
Details for the file ovos_m2v_pipeline-0.3.1a1-py3-none-any.whl.
File metadata
- Download URL: ovos_m2v_pipeline-0.3.1a1-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21954c2515798a10f17c0a6b921dccb133790eb9e6359cc632a82d724f1ab69e
|
|
| MD5 |
f737cf169786b75c2bed0ae5556da5a8
|
|
| BLAKE2b-256 |
f593cda550c4195b4d8cf3dd14ac7bb20ee51ae62c3902116e254ddada6127be
|