TAP Lite in browser
Classify text or compare a premise and hypothesis in Studio Lite. It runs Rust WASM in the browser.
Practical guide for TAP
TAP has three entry points. Start in the browser, run the native CLI, or train a local adapter with Model Forge.
The browser route is for trying TAP. Native Rust is for integrating it. Model Forge is for training a separate LoRA adapter.
Classify text or compare a premise and hypothesis in Studio Lite. It runs Rust WASM in the browser.
Build the TapirusDB CLI or call TapEngine and Connection::tap() from Rust.
Run the desktop Studio with a local Python backend, a base model cache and a labelled training dataset.
Nothing in TAP Lite calls a cloud model. An optional teacher API in Model Forge is a separate, consent-based path.
This is the shortest path. There is no package or model installation.
Go to tapirusdb.com/studio and wait for the Rust engine status to become ready.
Enter a sentence, then enter candidate labels separated by commas and press Classify with TAP.
Enter a premise and hypothesis, then press Check hypothesis.
Treat the output as a heuristic signal. Keep a human or application rule for consequential decisions.
Text to classify:
Saya mahu refund barang rosak.
Candidate labels:
refund, support, akaun
Premise:
Data disimpan dalam peranti.
Hypothesis:
Data disimpan secara tempatan.Browser copies use IndexedDB and are unencrypted. Export a .tapir backup and use native storage for encrypted files.
For offline use, download Studio Lite 1.0.2, extract it, and run Start-Tapirus-Lite.cmd on Windows or sh Start-Tapirus-Lite.sh on macOS/Linux. Do not open the HTML file with file://.
Use the source tree when you want a reproducible local build.
cargo build --release --bin tapirus
# Windows
.\target\release\tapirus.exe --help
# macOS or Linux
./target/release/tapirus --help.\target\release\tapirus.exe bitnet "Saya mahu refund barang rosak" refund support akaun./target/release/tapirus bitnet "Saya mahu refund barang rosak" refund support akauntapirus bitnet verify "Data disimpan dalam peranti" "Data disimpan secara tempatan"The bitnet command is a local decision demo. It does not train a model or establish factual truth.
The same decision helpers can be called directly from a Rust application.
use tapirus::{Connection, Result};
fn main() -> Result<()> {
let db = Connection::open("demo.tapir")?;
let tap = db.tap();
let result = tap.classify(
"Saya mahu refund barang rosak",
&["refund", "support", "akaun"],
)?;
println!("label: {}", result.top_choice);
println!("score: {}", result.confidence);
let check = tap.verify(
"Data disimpan dalam peranti",
"Data disimpan secara tempatan",
)?;
println!("match: {}", check.is_verified);
db.close()?;
Ok(())
}For user-provided SQL values, use bound parameters. TAP output should not be the only authorization or safety control.
Model Forge is a separate desktop training flow. It is not required for TAP Lite or the native CLI demo.
Node.js 20+, npm, Python 3, training dependencies, a local base model and enough disk or GPU resources for that model.
cd studio
npm ci
python -m pip install -r requirements-training.txt
python server.pyIn a second terminal, start the interface:
cd studio
npm run devOpen the Vite URL, usually http://localhost:5173. On Windows, run_studio.bat can launch the built interface and backend after the dependencies are installed.
{"instruction":"Bagaimana buat backup?","output":"Gunakan snapshot .tapir dan uji restore."}Accepted pairs are instruction/output, prompt/response or input/target. At least two valid examples are required.
Upload JSONL, NDJSON, JSON or CSV.
Download the selected base model into the local Studio cache.
Run real local batches and inspect train and held-out loss.
Export a verified .tap-model.zip adapter bundle.
setup_models.bat and setup_models.sh install Ollama models. They do not replace requirements-training.txt or python server.py for real LoRA training.
These boundaries are part of using TAP responsibly.
| Output | What it means | What it does not mean |
|---|---|---|
| Classification score | Relative heuristic signal among the candidate labels. | Calibrated probability or guaranteed intent detection. |
| Verification score | Text similarity and polarity signals for the supplied premise and hypothesis. | Proof that a claim is true. |
| Model Forge loss | Training metrics observed for that dataset and run. | Domain accuracy until a separate labelled evaluation is run. |
For code-level details, see the TAP section in the technical docs. For the complete local guide, use the TapirusDB source repository.