Skip to content

Commit 6df81e6

Browse files
committed
update locomo_rag bash
1 parent 0d81179 commit 6df81e6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

evaluation/scripts/locomo/locomo_rag.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ def generate_response_file(file_path):
272272
)
273273
parser.add_argument("--chunk_size", type=int, default=2000, help="Chunk size for processing")
274274
parser.add_argument("--num_chunks", type=int, default=2, help="Number of chunks to process")
275+
parser.add_argument("--frame", type=str, default="rag")
275276

276277
args = parser.parse_args()
277278
with open(file_path) as f:

evaluation/scripts/run_rag_eval.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22
LIB="rag"
33
VERSION="default"
44
DATA_SET="locomo"
5-
5+
export HF_ENDPOINT=https://hf-mirror.com
66
mkdir -p results/$DATA_SET/$LIB-$VERSION/
77
echo "The result saved in:results/$DATA_SET/$LIB-$VERSION/"
88

99
echo "The complete evaluation steps for generating the RAG and full context!"
1010

1111
echo "Running locomo_rag.py..."
12-
python scripts/locomo/locomo_rag.py --chunk_size 128 --num_chunks 1 --output_folder results/$DATA_SET/$LIB-$VERSION/
12+
python scripts/locomo/locomo_rag.py \
13+
--chunk_size 128 \
14+
--num_chunks 1 \
15+
--frame $LIB \
16+
--output_folder "results/$DATA_SET/$LIB-$VERSION/"
17+
1318
if [ $? -ne 0 ]; then
1419
echo "Error running locomo_rag.py"
1520
exit 1

0 commit comments

Comments
 (0)