Skip to content

Legal Tech · Law Firms (Pakistan)

LawGPT: Legal AI Platform for Lawyers & Judges

Legal AI platform for lawyers and judges, covering legal chat, document drafting and analysis over 300,000+ indexed cases via an orchestrator agent.

Role
AI Engineer
Built production RAG system serving multiple law firms.
Industry
Law Firms (Pakistan)
Timeline
Jan 2025 - Aug 2025 (6 Months)

Business impact

cases indexed
300,000+
petition types automated
35
law firms served
Multiple (Production)
development cycle
6 months

Overview

Platform for lawyers and judges spanning legal chat, document drafting and document analysis, where a centralised orchestrator agent delegates to feature-specific sub-agents on demand.

300K+ legal cases indexed for retrieval, with per-feature sub-agents handling drafting, citation lookup and analysis so each capability stays independently evaluable and governable.

Technical architecture

AI/LLM
GPT 4o, GPT 4o mini, LangChain, LangGraph, CrewAI
RAG
Azure AI Search with 300K+ cases indexed
Backend
FastAPI with Azure Function Apps
Cloud
Microsoft Azure infrastructure

Key features

  • Legal Chat: AI powered legal assistant for Pakistan law queries
  • Petition Drafting: Supports 35 different petition and application types
  • Document Analysis: Intelligent summarization and precedent extraction
  • CMS Argument Generation: AI powered case strategy assistance

Challenges solved

  • Indexing and searching 300,000+ legal cases efficiently
  • Generating legally compliant petition formats
  • Extracting accurate precedents and citations

Tech stack

  • LangChain
  • LangGraph
  • CrewAI
  • Azure AI Search
  • AI Agents
  • FastAPI
  • Azure AI Foundry
  • GPT 4o
  • Python
  • RAG