Writ combines a fine-tuned language model with an encrypted on-device knowledge base — judgments, statutes, curated legal notes — retrieved through hybrid keyword and neural search. No account. No cloud. Queries never leave your machine.
Capabilities
Every architectural decision prioritises privacy, depth, and precision over convenience and cloud dependency.
The complete inference pipeline — model loading, retrieval, generation, and re-ranking — runs on your local hardware via Ollama. Nothing is transmitted to any external server. Your research stays yours.
Judgments, acts, and curated legal notes stored encrypted on-device. No plaintext exposure at rest.
BM25 keyword search combined with neural re-ranking surfaces the most relevant passages, not just the most frequent matches.
Writ runs Vidhi (Llama 3.2 3B fine-tune), a model trained specifically on Indian legal texts. It understands the structure of judgments, identifies precedents, and reasons about statutory provisions in context.
Paste a case synopsis and get a predicted judgement grounded in previous High Court / Supreme Court judgments and State / Central acts — predicted outcome first, then the governing ratio, application to your facts, and limits.
A focused interface designed for long-form legal reading. Light and dark modes. No telemetry, no banners, no feature clutter.
Architecture
Four steps from your prompt to a grounded, cited legal response — all on your machine.
Submit a natural-language legal question or a case-law lookup. No query syntax required.
BM25 keyword search across the encrypted knowledge base is fused with a neural embedding pass and candidates are scored.
An offline embedding model re-scores candidates by semantic similarity and fuses that signal with keyword scores — no topic-specific rules.
Vidhi receives the top passages as context and generates a prediction with a sources list — judgments and acts first — entirely on your hardware.
"The right to access justice should not require trusting a third-party server with the most sensitive details of a legal matter." — Writ, built for privacy-first legal research
Get Started
Free for personal, non-commercial use. No account required. Windows, macOS, and Linux.
Writ-Setup-1.0.0-Windows.exeWrit-1.0.0-Mac.dmgWrit-1.0.0-Linux.tar.gz
Prerequisites & sizes (verified). Writ requires Ollama running locally for model inference. On first launch, the Vidhi model (2.0 GB — 2,019,377,408 bytes) is downloaded automatically. The encrypted knowledge base (1.7 GB — 1,718,935,552 bytes) ships with the install.
Status
Writ is a working proof of concept. The framework — offline inference, hybrid retrieval, encrypted on-device knowledge base — is real and functional. But it is not a polished, production-grade product. Expect rough edges, inconsistent outputs, and missing coverage.
Vidhi is a Llama 3.2 3B fine-tune trained on roughly 15,000 Supreme Court judgments (2010–2026) plus the full IndiaCode Central Acts data. The on-device knowledge base holds about 363,000 records: High Court and Supreme Court judgments, State and Central acts, and hand-verified landmark notes. Coverage is broad but not exhaustive — thin pockets (e.g. POSH, defamation) and very recent law will be weaker.
If you are interested in a properly built, production-ready version — see below.
Legal Disclaimer
Writ does not provide legal advice. Nothing generated by this tool constitutes legal counsel, legal opinion, or a substitute for advice from a qualified advocate.
Always consult a licensed lawyer before acting on any legal matter. AI-generated responses can be wrong, incomplete, outdated, or contextually inapplicable to your specific situation.
Citations surfaced by the retrieval system must be independently verified against authorised sources before reliance.
License
Writ is licensed for personal, non-commercial use. You may install and run the software on your own device for personal legal research. Redistribution, modification, or commercial use requires explicit written permission from the author.
Licensing inquiries →Collaboration
The architecture is proven. If you represent a legal firm, institution, or organisation that needs a production-grade offline legal intelligence system — expanded knowledge base, custom fine-tuning, enterprise deployment — reach out.