This repo is an experiment using retrieval augmented generation to create a chatbot.
The following environment variables are used to interact with OpenAI API:
Name | Description |
---|---|
OPENAI_API_KEY | Your OpenAI API Key |
To install locally, you'll need the following:
These instructions assume you are using macOS. For other operating systems, see the Cloud-based Development section below.
Install homebrew
with the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Use homebrew
to install pyenv
:
brew update
brew install pyenv
Add the following to ~/.zshrc
(see Set up your shell environment for Pyenv for other shells):
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
Install poetry
with the following command:
curl -sSL https://install.python-poetry.org | python3 -
Add poetry
to your path in ~/.zshrc
:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
Clone the repository:
git clone git@github.com:jeffdevine/malina-bot.git
cd malina-bot
Install the Python version specified in .python-version
:
pyenv install
Install the project dependencies:
poetry install
To start a shell in the project's virtual environment, run the following command:
poetry shell
This project supports using Github Codespace (https://github.com/features/codespaces) to develop either in a web browser or locally using Visual Studio Code Remote (https://code.visualstudio.com/docs/remote/containers).
- Go to the https://github.com/jeffdevine/malina-bot.
- Click
< > Code
, then clickCreate codespace on main
.