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.exeollama run hf.co/prawinin/vidhi in your terminalWrit-1.0.0-Mac.dmgollama run hf.co/prawinin/vidhi in your terminalWrit-1.0.0-Linux.tar.gzollama run hf.co/prawinin/vidhi in your terminalNote: These installers are provided directly and are currently unsigned. You may need to bypass OS-level security warnings (such as Windows SmartScreen or macOS Gatekeeper) to run them.
Prerequisites &
Writ requires
Ollama running locally for model inference. You will need to manually download the Vidhi model (2.0 GB) by running ollama run prawinin/vidhi in your terminal, or visit ollama.com/prawinin/vidhi. The encrypted knowledge base (1.7 GB — 1,718,935,552 bytes) ships with the install.
Status
Writ is strictly a Proof of Concept (PoC) and operates on a small 3-billion parameter model (3B). It attempts to predict potential legal outcomes based on previous judgments and acts, but its outputs are highly experimental and should not be relied upon.
The framework — offline inference, hybrid retrieval, encrypted on-device knowledge base — is functional, but it is not a polished or production-grade product. Expect rough edges, hallucinations, and missing coverage.
If you are interested in a properly scaled, production-ready version of this framework, please contact prawin@vyapai.tech.
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 legal professional before acting on any legal matter.
AI-generated responses can be wrong, incomplete, outdated, or contextually inapplicable to your specific situation.
No Liability: The creators and developers are not responsible for any outcomes, damages, or actions taken on the basis of the output generated by this application. Use it entirely at your own risk.
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.