Skip to content

Legal Assistant is an innovative application that leverages RAG (Retrieval-Augmented Generation) technology to deliver personalized legal advice and guidance based on Moroccan law.

License

Notifications You must be signed in to change notification settings

MohamedAlaouiMhamdi/LegalAssistant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Legal Assistant

Legal Assistant is an innovative application that leverages RAG (Retrieval-Augmented Generation) technology to deliver personalized legal advice and guidance based on Moroccan law.

Overview

Accessing legal advice and guidance can be complex, time-consuming, and costly, especially in Morocco. Individuals and businesses often struggle to navigate the intricacies of Moroccan legal regulations and procedures without proper guidance. Legal Assistant aims to address these challenges by providing a user-friendly interface for submitting legal queries and receiving timely responses backed by comprehensive legal research and analysis.

Features

  • User-Friendly Interface: Simple and intuitive interface for submitting legal queries.
  • RAG Technology: Harnesses RAG technology for personalized legal advice.
  • LLAMAindex and Ollama Integration: Conducts comprehensive legal research and analysis.
  • Real-Time Interaction: Allows users to clarify doubts and ask follow-up questions.
  • Enhanced Access to Legal Expertise: Cost-effective solutions for informed decision-making.

Technology Stack

  • Flask: Lightweight web application framework for Python.
  • LLAMAindex: Library for indexing and querying documents using large language models.
  • Ollama: Library for using large language models as a service.
  • BGE (Byte-pair Gradient Embedding): Model for generating document embeddings.
  • HTML: Structuring and content definition for the web interface.
  • JSON: Lightweight data interchange format for returning bot responses.

Implementation

The project is implemented using an Agile methodology for iterative development, ensuring continuous improvement and responsiveness to user needs. Rigorous testing procedures are in place to ensure accuracy, reliability, and user satisfaction. Continuous feedback integration refines algorithms and improves user experience.

Usage

To run the application locally:

  1. Install dependencies: pip install -r requirements.txt
  2. Set up the necessary environment variables.
  3. Run the Flask application: python app.py

Demo

image

image

image

image

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

About

Legal Assistant is an innovative application that leverages RAG (Retrieval-Augmented Generation) technology to deliver personalized legal advice and guidance based on Moroccan law.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 37.6%
  • CSS 32.8%
  • Python 18.6%
  • JavaScript 11.0%