Skip to content

Commit

Permalink
rename setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Mar 21, 2024
1 parent 43570bd commit f0794e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-qdrant-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Check Hardware Spec
run: /bin/bash ./scripts/get_hardware_info.sh
- name: Cache dataset
Expand All @@ -25,7 +25,7 @@ jobs:
dataset
key: ${{ runner.os }}-dataset
- name: Download data
run: /bin/bash ./scripts/download.sh gha
run: /bin/bash ./scripts/setup.sh gha
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ Before running the benchmarks, ensure you have the following installed:
Create directories for datasets and output files, then download the necessary datasets using the provided script.

```bash
mkdir -p dataset output
/bin/bash ./scripts/download.sh
/bin/bash ./scripts/setup.sh
```

2. **Install Dependencies:**
Expand Down
4 changes: 3 additions & 1 deletion scripts/download.sh → scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ fi
# wikipedia contents
data_type=passages-c400-jawiki-20230403
model_type=multilingual-e5-base-passage

data_dir="${base_dir}/../dataset/${data_type}"
output_dir="${base_dir}/../output"

mkdir -p "${data_dir}"
mkdir -p "${data_dir}" "${output_dir}"

for data_file in ${data_files} ; do
if [[ ! -f "${data_dir}/${data_file}" ]] ; then
Expand Down

0 comments on commit f0794e5

Please sign in to comment.