This repository contains code for getting started with basic QnA with in-context learning (a prompt engineering technique).
Make sure you have the following installed before the workshop:
- Python 3.10+
- VS Code Editor
- kubectl or oc
-
Fork this repository to your own GitHub account.
-
Clone your fork to your local machine:
git clone https://github.com/YOUR_USERNAME/ai-workshop-rh.git cd ai-workshop-rh -
Install dependencies:
python3 -m venv .venv source ./.venv/bin/activate pip install -r requirements.txt
export CONTEXT_FILE="./data/contexts/ipl_2025.txt"
# export CONTEXT_FILE="./data/contexts/chess.txt"
# export CONTEXT_FILE="./data/contexts/empty.txt"
python qna.py
If you get stuck:
- Ask your workshop host or teammates!
- Or open a GitHub Issue if it's repo-related.