This is a submission for the GitHub Copilot Challenge : Fresh Starts
What I Built π
Litigence AI is a legal information platform designed to simplify access to Indian legal knowledge through advanced technology. Built with a focus on underserved communities, it provides personalized legal guidance via a conversational AI interface.
Technical Architecture π»
- Frontend: Developed using Flutter for a seamless user experience, currently in closed testing on the Play Console.
- Backend: Flask-based backend hosted on Google Cloud Run ensures scalable and efficient processing.
- AI Model: Powered by a fine-tuned Vertex AI model with Google's default grounding, enhanced with custom data for improved contextual accuracy.
- Cloud Infrastructure: Firebase supports real-time web hosting and future web-based features.
Implemented Features β
- Google & OTP Authentication: Simplified and secure user access integrated via Firebase.
- Law of the Day: Educates users daily on relevant laws to foster awareness.
- Onboarding Flow & Chat Interface: Smooth user onboarding and interactive legal guidance through a conversational chat system.
Demo π±
Installation π₯
Release Mobile App - Direct Link π
Repo π
Legal Chat App
This is a Flutter-based chat application that utilizes the Gemini API for communication.
Project Overview
This application provides a basic chat interface where users can send and receive messages. The Gemini API is used to handle the communication logic.
Features
- Real-time chat functionality.
- Integration with the Gemini API.
- User authentication (using Firebase).
- Basic message display and input.
Project Setup
- Install Flutter: If you haven't already, install Flutter by following the instructions on the official Flutter website: https://flutter.dev/docs/get-started/install
- Clone the repository: Clone this repository to your local machine.
-
Install dependencies: Navigate to the project directory and run
flutter pub get
to install the required dependencies. -
Configure Firebase:
- Create a Firebase project and add the
google-services.json
file to theandroid/app
directory. - Enable Firebase Authentication for your project.
- Create a Firebase project and add the
-
Set up Gemini API:
- Configure any necessary API keys or credentials for the Gemini API within the application code (e.g., in
lib/services/gemini_service.dart
β¦
- Configure any necessary API keys or credentials for the Gemini API within the application code (e.g., in
Overview
This application provides a Flask-based API that can be run locally or deployed in a Google Cloud environment. Below are step-by-step instructions on installing dependencies, configuring Google Cloud, running the application, and testing the API locally.
Prerequisites
- Python 3 (for running the Flask application)
- Google Cloud SDK (for Google Cloud integration)
- curl (for API testing)
Running the Application Locally
- Clone or open the repository.
- Ensure you have installed Python dependencies (if applicable, use
pip install -r requirements.txt
). - Run the application:
python main.py
This starts the application at http://localhost:8000
.
Installing Google Cloud SDK
Use the steps below on a Linux x86_64 machine:
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-linux-x86_64.tar.gz
tar -xf google-cloud-cli-linux-x86_64.tar.gz
./google-cloud-sdk/install.sh
(Optional) Add the Google Cloud CLI to your PATH:
# Example approach
echo "source ~/google-cloud-sdk/path.bash.inc" >> ~/.bashrc
source ~/.bashrc
Initialize the SDK:
./google-cloud-sdk/bin/gcloud init
Follow the prompts to choose your Google Cloud project and configureβ¦
Copilot Experience β‘
GitHub Copilot was my coding superhero! Here's how it supercharged development:
- Smart Autocomplete: Blazing-fast code generation for Flask and Flutter
- AI Pair Programming: Intelligent suggestions for complex implementations
- Error Prevention: Helped craft robust error handlers
- Testing Magic: Quick generation of comprehensive test cases
- Code Refinement: Continuous suggestions for cleaner, better code
GitHub Models π€
While Litigence AI currently uses Vertex AI for its production environment (leveraging Google's grounding capabilities and Gemini's custom data integration), we're actively experimenting with GitHub Models, particularly o1, for enhanced RAG capabilities. Our testing involves comparing response accuracy and contextual understanding between different models. The results from these experiments will guide our future model selection, ensuring we deliver the most accurate and reliable legal guidance to our users.
Conclusion π―
Building Litigence AI has been an incredible journey for @karthidreamr, transforming a personal mission into a powerful tool for social change. Through the strategic use of GitHub Copilot and cloud technologies, what started as a response to childhood observations of legal inequality is now evolving into a platform that makes legal knowledge accessible to everyone.
The future of Litigence AI looks promising as we continue to enhance features and scale our impact. Together, we're working to ensure that legal awareness becomes a fundamental right, not a privilege! π
Top comments (11)
Thank you Github for the student pro plan !
Copilot is awesome, especially the Claude Sonnet 3.5 (new) is a real coder
Wonderful idea keep doing
Glad you like it!
Extraordinary
Looks like Copilot outsmarted Devin already
Useful innovation for our society
Dev π» + AI π§ = Better World ππ
Awesome
Good Idea
Thank you for your kind words!
Some comments may only be visible to logged-in visitors. Sign in to view all comments.