Skip to content

[Project Submission] ACTS Sri Lanka - AI Assistant for your legal problems #42

@scythe410

Description

@scythe410

Acts of Sri Lanka - AI Assistant

Image

🌍 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:

  1. Domain-Specific Data: Replaced generic documents with official Sri Lankan legal acts and amendments
  2. Legal-Focused Prompts: Customized system prompts for legal document interpretation and citation
  3. Government Document Processing: Optimized PDF processing for legal document structure
  4. Citation System: Enhanced citation format for legal references
  5. UI Customization: Updated branding and interface for legal assistance context
  6. 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


🙌 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    submissionJS AI Build-a-thon Projects

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions