Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.
Python calibrationclassificationdecision-modelhuggingfacejevmodernbertmultilingualnlppythonpytorchroutingtyped-decisionszero-shot
README and docs: what each input accepts and where its limit is
Nandakishor24222439c139
diff --git a/README.md b/README.mdindex baef5dbc..9dc2faf9 100644--- a/README.md+++ b/README.md@@ -98,6 +98,15 @@ agent.predict(audio=wave, questions=questions, sampling_rate=16000) # transcagent.predict_long(seventy_page_contract, questions) # up to 73,728 tokens, read whole```+What each input accepts, and where its limit is:++| input | accepted | limit |+|---|---|---|+| image | a PIL image, a path, or an HxWx3 array; any format Pillow opens | scaled to about one megapixel (1,048,576 pixels) before the reader sees it, so a larger file costs nothing more and gains nothing; no file-size cap of its own, memory is the bound |+| audio | a path or raw file bytes (wav, flac, ogg, mp3; needs `pip install soundfile`), or a 1-D numpy waveform with `sampling_rate=` | any length: stereo is averaged, the wave is resampled to 16 kHz and transcribed in 30 s windows, and the transcript then counts toward the 73,728-token context. The default transcriber is English-only; pass `asr="openai/whisper-tiny", language="hi"` for other languages |+| video | not read by laya | split it yourself: frames go in as images, the sound track as audio |+| text | a string, a dict or a list | 73,728 tokens, read whole; `usage["truncated"]` reports when a state reached the limit |+**Fit and calibrate on your own labels.** Seconds, no gradient step, and the route line is placed for you:```pythondiff --git a/docs/vegaml.md b/docs/vegaml.mdindex ce6856cf..32d891c8 100644--- a/docs/vegaml.md+++ b/docs/vegaml.md@@ -84,6 +84,15 @@ agent.predict(audio=wave, questions=questions, sampling_rate=16000) # transcriagent.predict_long(document, questions) # one pass up to 73k tokens```+What each input accepts, and where its limit is:++| input | accepted | limit |+|---|---|---|+| image | a PIL image, a path, or an HxWx3 array; any format Pillow opens | scaled to about one megapixel (1,048,576 pixels) before the reader sees it, so a larger file costs nothing more and gains nothing; no file-size cap of its own, memory is the bound |+| audio | a path or raw file bytes (wav, flac, ogg, mp3; needs `pip install soundfile`), or a 1-D numpy waveform with `sampling_rate=` | any length: stereo is averaged, the wave is resampled to 16 kHz and transcribed in 30 s windows, and the transcript then counts toward the 73,728-token context. The default transcriber is English-only; pass `asr="openai/whisper-tiny", language="hi"` for other languages |+| video | not read by laya | split it yourself: frames go in as images, the sound track as audio |+| text | a string, a dict or a list | 73,728 tokens, read whole; `usage["truncated"]` reports when a state reached the limit |+The modality is chosen by which argument you passed; the questions and the answer shape are thesame. An audio answer carries `transcript` and `asr`, because a decision made on words you neversaw cannot be audited. `predict_image_text` answers the same questions with the image withheld,