A reproducible prototype for personalized RDM training using local LLMs (e.g. Phi) with LlamaIndex and Carpentries content.
Demonstrated here with a Git-focused lesson. Developed with FAIR and open science principles in mind.
It is intended as an experimental prototype and not yet ready for production use. Contributions and feedback are welcome.
git_llm_training_data.json– Example questions and answers based on the Library Carpentry Git lessongit_llm_prototype.ipynb– Interactive notebook with a simple retrieval-based systemrequirements.txt– List of Python dependencies
python3 -m venv llm-env
source llm-env/bin/activatepip install -r requirements.txt
Install Ollama (see https://ollama.com):
curl -fsSL https://ollama.com/install.sh | sh
Start the model (Phi-2):
ollama run phi
jupyter notebook
Then open git_llm_prototype.ipynb and select the kernel that matches your virtual environment.
This project and its contents are licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0).
You are free to share and adapt the material, provided that you give appropriate credit.
© 2025 Rabea Müller
This project builds on content from the Library Carpentry Git Lesson, available at https://librarycarpentry.org/lc-git/.