law-cn-ai🔥 logo

law-cn-ai🔥

Free

4.8k

FreeFree tier
Inputs: textOutputs: text
Type
Open Source
Company
lvwzhen

About law-cn-ai🔥

Law CN AI is an open-source AI legal assistant designed for Chinese law. Built with Next.js, Supabase, and OpenAI, it uses pgvector for embedding-based similarity search. The tool processes .mdx files from a curated Chinese law repository as custom context, enabling users to ask natural language questions and receive answers grounded in the legal documents. It supports easy deployment on Vercel with Supabase integration.

Key Features

OpenAI GPT-3 text completion with custom legal context
pgvector similarity search for relevant document sections
Preprocessed .mdx files from Chinese law repository
Next.js frontend with Tailwind CSS
Supabase for database and vector storage
One-click deployment on Vercel with Supabase integration
Open source and customizable for other knowledge bases

Pros & Cons

Pros
  • Free and open source
  • Easy deployment with Vercel and Supabase
  • Uses actual Chinese legal documents for accuracy
  • Community-driven with active GitHub repository (4.9k stars)
  • Customizable for other legal systems or knowledge domains
Cons
  • Requires own OpenAI API key (costs may apply)
  • Limited to Chinese law content from the provided repository
  • Depends on external services (OpenAI, Supabase, Vercel)
  • No pre-built hosted version; requires self-deployment
  • Documentation primarily in Chinese

Best For

Answering questions about Chinese legal statutes and regulationsLegal research assistance for lawyers and studentsBuilding custom ChatGPT-like chatbots for domain-specific knowledgeEducational tool for learning Chinese law

FAQ

How do I deploy Law CN AI?
Deploy the starter to Vercel; the Supabase integration automatically sets environment variables and configures the database schema. You only need to set the OPENAI_KEY.
What technology stack does it use?
It uses Next.js for the frontend, OpenAI API for embeddings and text completion, Supabase with pgvector for vector storage, and Tailwind CSS for styling.
Is the tool free?
Yes, the source code is free and open source under the repository license. However, you need to provide your own OpenAI API key, which may incur usage costs.