Option 1: Docker Deployment Run the following command to start the container, before that you should install docker and docker-compose.
git clone https://github.com/Kasma-Inc/hirag-prod
cd hirag-prod
HIRAG_PROD_DIR="." docker compose -p $(whoami)_hirag-prod-compose up -dThen use the following command to enter the container:
docker exec -it $(whoami)_hirag-prod /bin/bashor use VSCode to connect to the container.
Then create the virtual environment and install dependencies using uv as below:
uv venv --python 3.12
source .venv/bin/activate
uv pip install -e .Then create the .env file and replace the placeholders with your own values:
cp .env.example .env
source .envRun the script:
python main.pyOption 2: Local Deployment Make sure uv is installed, if not:
curl -LsSf https://astral.sh/uv/install.sh | shThen create the virtual environment and install dependencies using uv as below:
uv venv
source .venv/bin/activate
uv pip install -e .Then create the .env file and replace the placeholders with your own values:
cp .env.example .envRun the script:
python main.py