Skip to content

Prabhas125/LexAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

πŸ›οΈ LexAI β€” AI-Powered Legal & Tax Research Assistant

Built for the Indian Servers AI Contest 2026

LexAI is a Retrieval-Augmented Generation (RAG) system that answers legal and tax queries with accurate, citation-grounded responses drawn from real legal corpora β€” no hallucinations, no guesswork.


✨ Features

  • πŸ” Semantic Search using FAISS vector index + sentence-transformers (all-MiniLM-L6-v2)
  • πŸ€– AI Answers powered by Google Gemini API
  • πŸ“Ž Citation-aware responses β€” every answer references the exact legal section
  • πŸ“š Multi-corpus support β€” query across multiple legal documents simultaneously
  • 🌐 Clean Web UI β€” Flask backend + Vanilla HTML/CSS/JS frontend

πŸ“š Legal Corpora Supported

Document Jurisdiction
GST Act 2017 India
Income Tax Act 1961 India
IFRS 16 International
UAE Corporate Tax Law 2023 UAE

πŸ› οΈ Tech Stack

Layer Technology
AI Model Google Gemini API
Embeddings sentence-transformers all-MiniLM-L6-v2
Vector Store FAISS
Backend Flask (Python)
Frontend HTML Β· CSS Β· Vanilla JavaScript

πŸ—οΈ Architecture

User Query
    β”‚
    β–Ό
Sentence Embedding (all-MiniLM-L6-v2)
    β”‚
    β–Ό
FAISS Similarity Search β†’ Top-K Legal Chunks
    β”‚
    β–Ό
Google Gemini API (RAG Prompt + Context)
    β”‚
    β–Ό
Citation-Aware Legal Answer

πŸš€ Getting Started

git clone https://github.com/Prabhas125/LexAI.git
cd LexAI
pip install -r requirements.txt
# Add your GEMINI_API_KEY in .env
python app.py

πŸ† Contest

Built for the Indian Servers AI Contest 2026 β€” a competition focused on building AI-powered real-world applications.


πŸ“„ License

MIT License

About

πŸ›οΈ AI-powered Legal & Tax Research Assistant using RAG (Google Gemini + FAISS) β€” Indian Servers AI Contest 2026

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors