Returns calibrated choice, score, and yes/no answers in one forward pass over text or media. Routes requests across checkpoints for 100+ languages on your machine.
Overview
Laya is a non-autoregressive decision engine for agents and workflows. You supply a state such as text, email, or ticket content plus typed questions, and it returns structured answers with calibrated probabilities in a single forward pass instead of open-ended text generation.
The Router detects language and input type, sending images, audio, long documents, or non-Latin text to appropriate checkpoints. The vega engine adds conformal prediction sets, abstain and out-of-distribution flags, and auto versus review routing. Text, images, speech, and long documents can share the same question schema.
Optional continuous learning via a separate vegaml-learn package lets a Learner improve from confirmed answers without full model fine-tuning. An Escalator can send uncertain cases to a teacher model or review queue. HTTP server, MCP, LangChain, and ONNX extras are documented for integration.
Classic encoder checkpoints remain available for short English text with multilingual routing for other scripts, and the documentation contrasts fit-and-calibrate heads with gradient fine-tuning of the reader.
Key features
- Typed choice, score, and boolean answers
- 100+ language routing
- Text, image, audio, and video inputs
- Calibrated abstain and review routing
- Conformal prediction sets
- Optional on-machine learning loop
- LangChain and MCP integrations
- Long-context document support
Use cases
- Ticket triage and routing
- Workflow gating with calibrated risk
- Multilingual classification in one pass
- Agent decision steps without generation
- Support queue urgency scoring