GitaGPT
A Bhagavad Gita chatbot/QA based on Retrieval-Augmented Generation (RAG) that will provide wisdom regarding life. Built using llama3.2 model and llamaindex.

Tech Stack used
framework: llamaindex
model: meta-llama/Llama-3.2-1B-Instruct (huggingface)
embedding: BAAI/bge-mini-en-v1.5 (huggingface)
vectorDB: chromadb
interface: gradio
Introduction
Retrieval-Augmented Generation (RAG) introduced in 2020 is a powerful new approach in language modeling that improves the quality and accuracy of responses generated by Large Language Models (LLMs) by relying on external knowledge for revelant context.

RAG is leveraged here along with a small opensource model for the project so that extra compute is not wasted to train a model from scratch or finetuning while also making it flexible.
Pre-requirements
-
In addition to the packages required, you need to have access to llama3.2 models by Meta on Huggingface. After that, create a huggingface access token.
-
A GPU with minimum of 16GB RAM is recommended for smooth and fast inference speed while a CPU can also run quite decently with that much VRAM.
Running
- Download the repo zip file or use git clone
git clone https://github.com/galax19ksh/GitaGPT.git cd GitaGPT - Install packages
pip install -r requirements.txt - First run the
init.py. Then you can runmain.pyorgradio_demo.py. Provide huggingface access token when prompted in CLI (But it is optional on subsequent run with same parameters).
python init.py
Note: If you change parameters in config.pyor add data files, make sure to run init.py first.