Skip to content

Repository files navigation

⚖️ Lex AI

Lex AI is an advanced, AI-powered legal research and case intelligence platform. It transforms raw, chaotic case documents into structured, instantly searchable, and interactive intelligence. Designed specifically for legal professionals, Lex AI provides AI-driven insights that are strictly grounded in your actual uploaded documents and verified legal databases, eliminating hallucinations and saving countless hours of manual review.


✨ Core Features

  • 📚 Centralized Document Library: One central, instantly searchable library for all case documents, organized by client and matter.
  • 💬 Grounded AI Document Chat: Ask complex questions about your uploaded documents and get AI answers that are grounded in the text. Every claim includes clickable quote references that jump exactly to the source location in the document.
  • 🗺️ Interactive Argument Mapping: Visualize your case as an interactive graph. See exactly how claims, supporting evidence, and contradictions connect across all your documents.
  • 🔍 Verified Citation Search: Search the CanLII database using natural language. Lex AI analyzes the results, extracts key passages, and provides verified legal citations—with a full audit trail and zero hallucinations.
  • 💼 Authority Binder Export: Automatically build curated binders of key authorities and export them as structured, audit-ready JSON packs.
  • 🔒 Enterprise-Grade Security & Governance: Built for stringent infosec reviews. Features include strict matter scoping, SSO-ready access control, immutable audit logs, and automated retention policies.

🛠️ Tech Stack

This project is a modern, full-stack web application built with the following technologies:

🚀 Getting Started

Follow these instructions to set up the project locally.

Prerequisites

Ensure you have Node.js (v18+) and npm (or pnpm, yarn) installed.

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/lex-ai.git
    cd lex-ai
  2. Install dependencies

    npm install
  3. Set up Environment Variables Create a .env.local file in the root directory and add the necessary environment variables (e.g., Database URLs, AI Provider API Keys, Authentication secrets).

    # Example .env.local
    NEXT_PUBLIC_APP_URL="http://localhost:3000"
  4. Run the Development Server

    npm run dev
  5. View the Application Open http://localhost:3000 with your browser to see the result.

📂 Project Structure

.
├── app/                  # Next.js App Router (Pages, Layouts, API routes)
│   ├── api/              # Backend API routes (Document processing, search, embeddings)
│   ├── dashboard/        # Main application interface and workspace
│   └── page.tsx          # Public landing page
├── components/           # Reusable React components (UI elements, Layouts)
│   ├── documents/        # PDF & DOCX viewers integrations
│   └── ui/               # shadcn/ui generic components
├── lib/                  # Utility functions, helpers, and configurations
├── public/               # Static assets (images, fonts, formatting)
└── styles/               # Global CSS files (Tailwind configuration)

📜 Legal Disclaimer

Not legal advice. The output generated by Lex AI requires human review by a qualified attorney. The platform acts as a research assistant and does not replace professional legal counsel.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages