Team Leader Email - Nikhil Bansal
The platform seamlessly integrates the capabilities of oneAPI and Intel technologies to empower legal professionals with advanced tools. Lawyers, upon login, gain access to a personalized dashboard presenting a detailed profile summary, including statistics on cases won, cases lost, and ongoing cases. Leveraging the Retrieval-Augmented Generation (RAG) technique backed by oneAPI, specific cases unfold with context-rich information, enhancing the lawyer's insights.
Furthermore, a sophisticated chat module, underpinned by our finely-tuned LLAMA-2 model and powered by Intel technologies, facilitates technical discussions on legal matters. The integration of oneAPI ensures optimized performance, scalability, and efficiency throughout the platform. This technical synergy of oneAPI, Intel technologies, RAG, and LLAMA-2 not only elevates the lawyer's ability to efficiently manage cases but also establishes a secure and technologically advanced environment for legal practitioners.
https://www.kaggle.com/datasets/vangap/indian-supreme-court-judgments
-
Intel® oneAPI Deep Neural Network Library (oneDNN):
- Use oneDNN for optimized deep learning operations, accelerating the training and inference processes of the fine-tuned LLAMA-2 model.
import onednnSave
- Use oneDNN for optimized deep learning operations, accelerating the training and inference processes of the fine-tuned LLAMA-2 model.
-
Intel® oneAPI Math Kernel Library (oneMKL):
- Leverage oneMKL for optimized mathematical operations, improving the overall performance of machine learning algorithms and computations.
import mkl
- Leverage oneMKL for optimized mathematical operations, improving the overall performance of machine learning algorithms and computations.
-
Intel® oneAPI Threading Building Blocks (oneTBB):
- Employ oneTBB for efficient parallelism in indexing, retrieval, and other parallelizable tasks, enhancing the scalability of the platform.
#include <tbb>
- Employ oneTBB for efficient parallelism in indexing, retrieval, and other parallelizable tasks, enhancing the scalability of the platform.
-
Intel® oneAPI Data Parallel C++ (oneAPI DPC++):
- Use oneAPI DPC++ for parallel execution of natural language processing tasks, optimizing query understanding and expansion.
#include <CL/sycl.hpp>
- Use oneAPI DPC++ for parallel execution of natural language processing tasks, optimizing query understanding and expansion.
-
Intel® oneAPI Security Libraries:
- Incorporate oneAPI security libraries to implement robust security measures for safeguarding sensitive legal information.
#include <ippcp.h>
- Incorporate oneAPI security libraries to implement robust security measures for safeguarding sensitive legal information.
These libraries from the Intel® oneAPI AI Analytics toolkit provide a comprehensive set of tools for optimized deep learning, mathematical operations, parallelism, and security, contributing to the efficiency and performance of the legal document research platform.
##Commands for setup a new server -
Install anaconda with this guide- https://www.digitalocean.com/community/tutorials/how-to-install-the-anaconda-python-distribution-on-ubuntu-22-04
AI toolkit installation- https://www.intel.com/content/www/us/en/developer/tools/oneapi/ai-analytics-toolkit-download.html?operatingsystem=linux&distributions=offline
Clone this repo and follow instructions from step 3 onwards from README- https://github.com/vishnumadhu365/oneapi-devsummit-sea-2023
##Running backend flask server
Create SSH session with tunnel on port 5000
ssh -L 5000:100.80.227.42:5000 -J guest@146.152.232.8 ubuntu@100.80.227.42Switch to root user:
sudo -iGo to project directory:
cd /root/hackathon/oneapi-devsummit-sea-2023/Activate virtual environment:
source itex_cpu/bin/activatestart python application:
python hackathon-notebooks/rag_llm_serviceV2.pyThe prototype exhibits notable scalability and forward-looking features that position it as an advanced solution for the evolving landscape of legal document research. Leveraging Intel technologies such as oneAPI Threading Building Blocks and oneDAL, the platform efficiently scales to handle a substantial volume of legal documents. This not only ensures optimal performance but also primes the system for accommodating future expansions in legal data repositories.
Looking toward the future, the prototype's iterative refinement processes, parallelized with Intel oneAPI Threading Building Blocks, enable continuous improvements based on user feedback and evolving legal document trends. The integration of advanced Natural Language Understanding (NLU) modules and the Retrieval-Augmented Generation (RAG) approach showcases the platform's adaptability to emerging legal language nuances and evolving user needs.
Furthermore, the prototype's incorporation of Intel oneAPI technologies, including Deep Neural Network Library (oneDNN) and Threading Building Blocks (oneTBB), positions it for future advancements in artificial intelligence and legal technology. The seamless integration of these technologies not only ensures optimal performance today but also establishes a foundation for incorporating future AI enhancements, making the platform a scalable and future-proof solution for legal professionals. Overall, the prototype stands as an innovative and scalable platform, ready to meet the evolving demands of the legal industry.