| #!/bin/bash |
|
|
| |
| set -e |
|
|
| echo "Setting up webshop..." |
| echo "NOTE: please run scripts/setup_ragen.sh before running this script" |
|
|
| |
| GREEN='\033[0;32m' |
| BLUE='\033[0;34m' |
| NC='\033[0m' |
|
|
| |
| print_step() { |
| echo -e "${BLUE}[Step] ${1}${NC}" |
| } |
|
|
| |
| |
| |
| conda install -c pytorch faiss-cpu -y |
| sudo apt update |
| sudo apt install default-jdk -y |
| conda install -c conda-forge openjdk=21 maven -y |
|
|
| |
| print_step "Installing additional requirements..." |
| pip install -r requirements.txt |
|
|
| |
| pip install -e external/webshop-minimal/ --no-dependencies |
| python -m spacy download en_core_web_sm |
| python -m spacy download en_core_web_lg |
|
|
| print_step "Downloading data..." |
| python scripts/download_data.py |
|
|
| |
| print_step "Downloading full data set..." |
| conda install conda-forge::gdown |
| mkdir -p external/webshop-minimal/webshop_minimal/data/full |
| cd external/webshop-minimal/webshop_minimal/data/full |
| gdown https://drive.google.com/uc?id=1A2whVgOO0euk5O13n2iYDM0bQRkkRduB |
| gdown https://drive.google.com/uc?id=1s2j6NgHljiZzQNL3veZaAiyW_qDEgBNi |
| cd ../../../../.. |
|
|
| echo -e "${GREEN}Installation completed successfully!${NC}" |
| echo "To activate the environment, run: conda activate ragen" |
|
|
|
|