Skip to content

This project leverages Retrieval Augmented Generation (RAG) to create an LLM model based on the Constitution of Nepal. The model, powered by LLAMA 3 70B and executed using ChatGROQ, enables efficient information retrieval and interaction with the constitutional text.

Notifications You must be signed in to change notification settings

MrBinit/LLM-Constitution_Nepal_2072

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Legal LLM for the Constitution of Nepal

Overview

This project introduces a specialized Legal Language Model (LLM) designed to provide accurate and insightful responses to queries related to the Constitution of Nepal. By harnessing the power of Retrieval Augmented Generation (RAG), we combine the vast knowledge of the Nepalese Constitution with the advanced language understanding of the LLAMA 3 70B model. This enables users to interact with the constitution in a natural, conversational manner.

Key Features

  • Legal Expertise: Fine-tuned on the entire Constitution of Nepal for domain-specific understanding.
  • RAG-Powered: Employs Retrieval Augmented Generation to provide contextually relevant and legally sound answers.
  • State-of-the-Art: Utilizes cutting-edge technologies like LLAMA 3, sentence transformers, and vector databases.
  • User-Friendly: Accessible through an intuitive ChatGroq interface.

Technical Implementation

  1. Data Preparation:

    • The Constitution of Nepal is parsed and structured using llama parse.
  2. Embedding Model:

    • BAAI/bge-base-en-v1.5 is used to generate high-quality embeddings for both constitutional text and user queries.
  3. Vector Database:

    • Qdrant stores the embeddings and facilitates efficient similarity searches.
  4. Reranking and Compression:

    • FlashrankRerank with the ms-marco-MiniLM-L-12-v2 model improves relevance ranking.
    • Compression techniques optimize storage and retrieval.
  5. Chat Interface:

    • ChatGroq provides a seamless conversational experience.

About

This project leverages Retrieval Augmented Generation (RAG) to create an LLM model based on the Constitution of Nepal. The model, powered by LLAMA 3 70B and executed using ChatGROQ, enables efficient information retrieval and interaction with the constitutional text.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published