Use Typescript and Vite to interface with the OpenAI API but enhances the output with Retrieval Augmented Generation served from NodeJS internally.
Tilt up Ubuntu Linux on an AWS 64-bit CISC EC2 Instance (t2.micro for example). Login via ssh and run the following commands in a bash script:
ssh-keygen
cat /home/ubuntu/.ssh/id_ed25519.pub
echo "copy the key and add it to the list of key with access to GitHub then press any key to continue..."
read -s -n 1
echo "Continuing..."
git clone git@github.com:infectiouscontent/ragger.git
ragger.git
cd ragger
bash scripts/setup.bash
When the vi dialog opens, enter the OPENAI_API_KEY. For example:
OPENAI_API_KEY=tHi$!zMy)p3N@IpaSswUd