#RAG Chatbot Modifications
LlamaIndex and Together.ai RAG chatbot
Copy your .example.env
file into a .env
and add values to the env variables
npm install
cache
folder. You can also provide a PDF in the data
folder instead of the default one.npm run generate
npm run dev
Make sure you have docker
, terraform
, and aws
cli tools installed locally AND have a dockerhub account and an AWS account AND your aws
cli tool is configured properly with credentials as terraform
will need the credentials to deploy resources.
docker buildx build --platform linux/amd64 . -t <your_docker_hub_name>/headstarter-ai-chatbot
docker login
docker push <your_docker_hub_name>/headstarter-ai-chatbot
Before running terraform
commands, make sure
AWS Access Key ID
and AWS Secret Access Key
are congiured in aws
cli locally.~/.ssh/id_rsa
and ~/.ssh/id_rsa.pub
.env.local
cd deploy
terraform init
terraform apply --auto-approve
terraform destroy --auto-approve