LangChain LLM application. Dynamic few-shot prompting for the task of tutoring.
Create a new virtualenv and pip install -r requirements.txt
.
Go to https://beta.openai.com/account/api-keys to generate your own OpenAI API key. Create a .env
file from the .env.template
and paste in your key.
To run the demo locally, uncomment line 133 in app.py
and comment out 132. Then run python app.py
.
The repository containers a Dockerfile
for running the bot in a containerized
workflow. Use the follow command to build and run the container
docker build -t tutor-gpt:latest .
docker run tutor-gpt:latest
The current behaviour will utilize the .env
file in your local repository
and run the bot.