-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Acts of Sri Lanka - AI Assistant
🌍 Problem Statement
Legal Access Inequality in Sri Lanka
Accessing and understanding Sri Lankan legal documents is a significant barrier for citizens, legal professionals, and government officials. The current system suffers from:
- Manual Document Search: Users must manually search through multiple physical or online files scattered across government websites and institutions
- Complex Legal Language: Legal documents contain complex terminology requiring significant time to parse and understand
- Limited Accessibility: No centralized, intelligent system exists to quickly answer specific questions about Sri Lankan laws
- Time-Consuming Research: Finding relevant information across multiple acts and amendments requires extensive manual effort
This creates a digital divide in legal literacy, where only those with extensive legal training can efficiently navigate the country's legal framework, leaving ordinary citizens at a disadvantage in understanding their rights and obligations.
🛠️ Solution
AI-Powered Legal Document Assistant
I customized the used the Azure Serverless Chat with RAG using LangChain to create a specialized legal assistant for Sri Lankan government documents.
Template Customization:
Base Template: Azure Serverless Chat with RAG using LangChain.js
- Why this template: Perfect foundation for document-based Q&A with built-in vector search and chat history
Key Modifications:
- Domain-Specific Data: Replaced generic documents with official Sri Lankan legal acts and amendments
- Legal-Focused Prompts: Customized system prompts for legal document interpretation and citation
- Government Document Processing: Optimized PDF processing for legal document structure
- Citation System: Enhanced citation format for legal references
- UI Customization: Updated branding and interface for legal assistance context
- Font & Typography: Implemented professional fonts (DM Serif Text for headers, Tinos for content) suitable for legal applications
Technical Enhancements:
- GPT-4o mini Integration: Configured for optimal legal document understanding
- Vector Search Optimization: Fine-tuned for legal document retrieval
- Multi-Document Support: Handles multiple legal acts simultaneously
- Real-time Citations: Provides source document references for transparency
Why This Approach:
- Scalable: Serverless architecture handles varying demand
- Cost-Effective: Pay-per-use model suitable for government/public use
- Secure: Azure's enterprise-grade security for sensitive legal data
- Accessible: Web-based interface works on any device
- Maintainable: Easy to update with new legal documents
🚀 Repository & Demo
- GitHub repo: Click here 😊
- Live demo: https://lively-meadow-0b6650b0f.1.azurestaticapps.net/
🙌 Call for Upvotes
Why Vote for Acts of Sri Lanka Assistant?
🏛️ Democratizing Legal Access: We're breaking down barriers to legal information, making Sri Lankan law accessible to everyone - from students to professionals to ordinary citizens.
🌍 Real-World Impact: This isn't just a demo - it's a practical tool that can immediately help people understand their rights, obligations, and the legal framework that governs their lives.
⚖️ Transparency & Trust: By providing document-grounded responses with citations, we're promoting transparency in legal information access.
🚀 Scalable Solution: Our serverless approach means this can scale to serve millions of users without infrastructure concerns.
💡 Innovation in Legal Tech: We're pioneering AI-powered legal assistance in Sri Lanka, setting an example for other countries and legal systems.
Vote for us because we're not just building another chatbot - we're building a bridge between citizens and their legal system, making justice more accessible one question at a time! 🇱🇰
Built with ❤️ using Azure AI, LangChain.js, and a commitment to legal accessibility
