Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lex AI - Your Personal Legal Assistant

Lex AI is an AI-powered web application built with Django, HTML, CSS, and JavaScript. It helps users:

  • Chat with Terms & Conditions / Privacy Policies
  • Ask general legal questions to an AI Legal Assistant
  • Upload legal documents and get clause extraction, risk analysis, and obligation summaries.

Project Structure

lexai/
├── chat_app/          # Django app for AI Legal Assistant and Document Analyzer
├── website_chat/      # Django app for Website T&C Chat
├── media/             # Uploaded Documents
├── db.sqlite3         # SQLite database
├── manage.py          # Django management script
├── .env               # API Keys and Secrets (DO NOT COMMIT)
├── requirements.txt   # Python dependencies
├── package.json       # (If any front-end JavaScript package used)
├── static/            # CSS, JavaScript, images
├── templates/         # HTML templates

Setup Instructions

  1. Clone the Repository
git clone <repo-link>
cd lexai
  1. Create Virtual Environment
python -m venv venv
source venv/bin/activate  # (Linux/macOS)
venv\Scripts\activate     # (Windows)
  1. Install Dependencies
pip install -r requirements.txt
  1. Setup Environment Variables Create a .env file with:
GEMINI_API_KEY=your_gemini_api_key_here
DEBUG=True
  1. Run Migrations
python manage.py migrate
  1. Start the Server
python manage.py runserver
  1. Access the Application Visit: http://127.0.0.1:8000

Features

  • Login / Signup Module
  • Chat with Terms & Conditions
  • Personal AI Legal Assistant
  • Document Analyzer (Chat with Documents)

Technologies Used

  • Backend: Django, Python
  • Frontend: HTML5, CSS3, JavaScript
  • Database: SQLite3
  • AI: Gemini 2.0 API

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages