Inspiration

Legal Llama arose from observing legal professionals' struggles with case management. Traditional methods are slow and error-prone. We aim to use blockchain and AI/ML to transform this, offering a secure, efficient platform for lawyers and judges to focus on justice.

What it does

File Management: Lawyers and judges can upload case files onto the platform. These files then undergo on-chain verification using Chainlink functions and are minted after hashing for authenticity and review.

AI Legal Assistance: We use RAG-based training to train an AI model to provide legal assistance relevant to the uploaded file. Users can ask queries related to their case, and the AI-powered chatbot provides contextual answers based on the uploaded file.

Cross-Chain Communication: Chainlink CCIP facilitates cross-chain communication, enabling users to interact with the chatbot from AMOY and FUJI chains. Additional Support: The platform also supports Scroll Sepolia for enhanced functionality.

Transactions
Contract on Amoy
Contract on Fuji
Contract on Scroll Sepolia

CCIP Tx
Data-Feeds Contract

How we built it

Integration: Built by integrating blockchain functionalities with AI/ML algorithms where users call for off-chain computation of the data provided by the user and then validate the source on-chain.

Technology Stack: Utilized Chainlink for file verification, cross-chain communication via CCIP, and price data feeds for providing user-friendly price conversions if the user wishes the list their case studies on-chain. Implemented RAG-based training to enhance the AI model's understanding of legal documents.

Interface Design: Designed a user-friendly chatbot interface for seamless interaction with users.

Security and Privacy: To ensure the security and authenticity of uploaded files while maintaining user privacy we have used Lighthouse

Challenges we ran into

It was difficult for us to find perfect legal resources to train the model and integrate chainlink in perfect ways.

Accomplishments that we're proud of

Integrating blockchain and AI/ML technologies creates a comprehensive legal assistance platform. Overcoming technical challenges to ensure the platform's security, authenticity, and privacy compliance.

What we learned

While building this project, we learned about creating a Rag-based model and finding its perfect use case with blockchain. We learned about building Fast APIs with Python and using several Chainlink Features.

What's next for Legal Llama

  • Continuously improve the AI model's accuracy and responsiveness through ongoing training and refinement

  • Expand cross-chain communication capabilities to support additional blockchain networks.

  • Explore additional features such as legal research assistance, and real-time case updates.

Built With

Share this project:

Updates