vegaml-learn
Continuous learning for vega, free for noncommercial use only (see Licence): a Learner that answers from day one and learns from every answer you confirm, an Escalator that sends only what vega is unsure of to a teacher and learns from the reply, and the vega Proxy that sits in front of an LLM API and learns your decisions from it.
Cite this work. M, N.; M, A. From Laya to Vega: Open Non-Autoregressive Decision Models with Calibrated Probabilities. Preprints 2026, 2026110781. https://doi.org/10.20944/preprints202611.0781.v1
BibTeX
@article{m2026laya_vega,
title = {From Laya to Vega: Open Non-Autoregressive Decision Models with Calibrated Probabilities},
author = {M, N. and M, A.},
journal = {Preprints},
year = {2026},
pages = {2026110781},
doi = {10.20944/preprints202611.0781.v1},
url = {https://doi.org/10.20944/preprints202611.0781.v1}
}
Licence: noncommercial only
Read this before you build on it. vegaml-learn is not open source in the Apache or MIT sense. It is licensed under the PolyForm Noncommercial License 1.0.0 (LICENSE).
Free: personal projects, research, study and experiments, and use by charities, schools, public research bodies and government.
Needs a paid commercial licence: any use by or for a business. That includes running it inside a product or a paid service, using it in a company's own operations (support routing, sales, risk, back office), and offering it to customers as a hosted service. It covers everything in this package: Learner, landscape learning, Escalator and the teachers, the REST server and the vega Proxy, and laya.Learner, which loads this package.
Terms, and a quote for your company: embedding.in/licence. For a quote, write to nandakishor@embedding.in.
vegaml itself, the decision engine this builds on, stays Apache 2.0. The learner that shipped inside vegaml 0.17.0 to 0.19.0 keeps the Apache 2.0 licence it was released under.
Landscape learning
New in 0.20, opt-in with VEGA_LEARN_HEAD=landscape. Each answer gets a well in vega's energy landscape, placed from its confirmed examples; the answer is the well the input settles in, with a temperature fitted on held-out examples. Nothing is iterated and no fit grows with the examples stored.
Measured against the default head on the same features: level on questions with a few answers (12 public tasks and model routing, within about a point from 100 examples on) and on ten sales questions with the vega 4B; behind by 2 to 9 points on questions with 60 to 100 answers until it has several hundred examples; faster to fit only past about a thousand examples (0.6 s against 4.8 s at 3,000). Use it for long-running learners on questions with few answers. What a learner has stored works with both, so switching back loses nothing.
Install
pip install vegaml-learn # Learner, Escalator, vllm_teacher
pip install "vegaml-learn[serve]" # REST server with JWT: python -m vegaml_learn serve
pip install "vegaml-learn[proxy]" # vega Proxy: python -m vegaml_learn proxy
pip install "vegaml-learn[claude]" # claude_teacher
Use
from vegaml_learn import Learner, Escalator, vllm_teacher
learner = Learner(questions, examples=rows, workdir="./vega-state") # rows: [(text, {question: answer})]
learner.decide("I was charged twice this month")
learner.feedback("I was charged twice this month", {"team": "billing"}) # learns every 50, in the background
desk = Escalator(learner, teacher=vllm_teacher()) # your own model; or claude_teacher(), or any function
desk.decide("I was charged twice")["answers"]["team"]["source"] # "teacher" until vega has learned
Code written for vegaml 0.19 keeps working: once vegaml-learn is installed, from vegaml import Learner, from vegaml.learn import Escalator and python -m vegaml.learn proxy all resolve to this package.
Full guide: docs/learn.md.
Metadata
Release files for vegaml-learn 0.20.1
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 |
|---|---|---|---|---|
| vegaml_learn-0.20.1.tar.gz | 82.3 kB | With provenance | Details for vegaml_learn-0.20.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vegaml_learn-0.20.1-py3-none-any.whl | Python 3 | none | any | Details for vegaml_learn-0.20.1-py3-none-any.whl |
Total release size: 144.6 kB
Release files / vegaml_learn-0.20.1.tar.gz
| Download URL | vegaml_learn-0.20.1.tar.gz |
|---|---|
| Size | 82.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdb1b931e18dc94a4adacfc61a0dc0c2e276ce03f3e8331e09a11ec9caa00dca
|
|
BLAKE2b-256 checksum How to use checksums |
c1089efaf4fab1763e922ab7397214620536e8c8a6809f625d53b7959a74baeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / vegaml_learn-0.20.1-py3-none-any.whl
| Download URL | vegaml_learn-0.20.1-py3-none-any.whl |
|---|---|
| Size | 62.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89ff24f8610f05a3c6756babb0ff4fd8cc88e661be382182152de11fb1c86629
|
|
BLAKE2b-256 checksum How to use checksums |
0431ac651a90d618a1ffe008b838ee9aaa5214f88d74dc2f384712fa0450a3fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for vegaml-learn 0.20.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for vegaml_learn-0.20.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA 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.