Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 2.64 KB

README.md

File metadata and controls

50 lines (31 loc) · 2.64 KB

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.