Skip to main content

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.

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.

Prices and terms: 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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vegaml-learn 0.20.0
File Size Uploaded Provenance Actions
vegaml_learn-0.20.0.tar.gz 81.8 kB With provenance Details for vegaml_learn-0.20.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vegaml-learn 0.20.0
File Interpreter ABI Platform Actions
vegaml_learn-0.20.0-py3-none-any.whl Python 3 none any Details for vegaml_learn-0.20.0-py3-none-any.whl

Total release size: 143.8 kB

Release files / vegaml_learn-0.20.0.tar.gz

Download URL vegaml_learn-0.20.0.tar.gz
Size 81.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6fbe28c06f95bd70c43189e595902fc7b1d7792fe2f7a0d4e238a447573d5743
BLAKE2b-256 checksum
How to use checksums
ee95a6fb683b1459912f36b6031300f22a92c512c9d17e59764160a1fb6db448
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 25, 2026.

Transparency log

Release files / vegaml_learn-0.20.0-py3-none-any.whl

Download URL vegaml_learn-0.20.0-py3-none-any.whl
Size 62.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c087e4ebc006902248ea6a4d9e8e5b83e700434d9d011fc36ce1b8d0b49ffc9
BLAKE2b-256 checksum
How to use checksums
c861b419d430e5bddb42063d87ed80d8639ec90ec00520f58351a07b17b7d204
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 25, 2026.

Transparency log

Security for vegaml-learn 0.20.0

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.

Select from 2 files

Attestation for vegaml_learn-0.20.0.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 25, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.20.0 This release

2 release files Full provenance

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