Skip to content
Projects

Web app · 2025 – now

HKLawyer.ai

Free bilingual legal answers, grounded in 20+ years of Hong Kong case law

A free bilingual AI platform that helps people access and understand Hong Kong legal information. Hybrid-search RAG over 20+ years of judiciary data, evaluated with an LLM-as-a-judge guardrail workflow.

  • Next.js
  • React
  • Python
  • Hybrid RAG
  • BM25
  • Qdrant
  • Docker
Questions
20K+
Answered for the public.
Eval pass rate
80%
LLM-as-a-judge, 100 test queries.
Visitors
52K+
And counting.
Case law
20+ yrs
HK Judiciary data indexed.

Why it exists

Legal help in Hong Kong is expensive and hard to navigate. Most people with a simple question (a tenancy dispute, an employment issue, a small claim) never get an answer, because the first step is paying for a consultation. I co-founded HKLawyer.ai because I'd seen that gap first-hand.

What I built

I own the whole system: RAG pipeline design, Python backend, React/Next.js frontend, Docker deployment, and DevOps.

  • Hybrid-search RAG that combines dense vector retrieval (Qdrant/Chroma) with BM25 sparse retrieval across 20+ years of bilingual Hong Kong Judiciary data, so answers cite real cases instead of hallucinating them, in English and Chinese
  • An LLM-as-a-judge evaluation and guardrail workflow that checks factuality and response quality. It passes 80% of a 100-query benchmark, and every failure is a concrete thing to fix
  • An interface designed for people who aren't lawyers: plain-language answers, cited sources, and no account wall
  • An AI-powered SEO system with LangChain that turns common questions into indexed, useful pages

Results

Since launching in June 2025, the platform has answered more than 20,000 questions for over 52,000 visitors, and its pages have collected over a million search impressions.