Home › Projects

कानुन साथी (Kanun Sathi)

Jan 2026 · Team of four · AI / full stack · by Abhiyan Khanal

We built an AI legal companion for Nepali citizens. You ask a legal question in Nepali or English and get an answer grounded in the actual legal documents, with the source cited down to the page so you can check it yourself. Lawyers get their own dashboard to upload documents and research across them.

Source on GitHub

Kanun Sathi chat answering a Nepali question about dissolving parliament, with the Constitution cited as the sourceLawyer dashboard with document selection and a Nepali legal research question

Features

The problem

Many young people in Nepal have no reliable way to check what the law actually says. They end up relying on social media or on relatives' personal experience. We wanted a tool where every answer can be traced back to a specific provision in a specific document, instead of a confident-sounding reply from a chatbot.

How it works

Frontend

A React and TypeScript app built with Vite and Tailwind CSS. It has a landing page with example questions, a chat view with a sidebar of saved conversations, answer and citation cards, login and sign-up, and a lawyer dashboard with My Documents, Legal Research, Clients and Profile sections. In Legal Research a lawyer ticks which uploaded documents to search, asks a question in Nepali or English, and gets an answer with sources and a history of past queries. Lawyer registration is its own feature module with validation schemas and tests.

Infrastructure

The whole stack runs from Docker Compose: the FastAPI service, PostgreSQL with pgvector, Redis and Ollama. The backend builds on the open-source Morphik Core RAG framework, which we configured for Nepali legal documents rather than writing the retrieval engine from scratch.

Tech stack

More projects by Abhiyan Khanal