From 9143ccefa0e359086776c9375856f54cfda2c737 Mon Sep 17 00:00:00 2001 From: CRD716 Date: Mon, 24 Apr 2023 22:55:43 -0500 Subject: [PATCH] introduction to give more consistent results --- examples/jeopardy/jeopardy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/jeopardy/jeopardy.sh b/examples/jeopardy/jeopardy.sh index 04e9a7656..2309c4192 100644 --- a/examples/jeopardy/jeopardy.sh +++ b/examples/jeopardy/jeopardy.sh @@ -9,13 +9,16 @@ output_file=./examples/jeopardy/results.txt opts="--temp 0 -n 80" # additional flags prefix="Human: " # Ex. Vicuna uses "Human: " +nl=' +' +introduction="You will be playing a game of Jeopardy. Simply answer the question in the correct format (Ex. What is Paris, or Who is George Washington)." counter=1 echo 'Running' while IFS= read -r question do - exe_cmd="./main -p "\"$prefix$question\"" "$opts" -m ""\"$MODEL\""" >> ""\"$output_file\"" + exe_cmd="./main -p "\"$prefix$introduction$nl$prefix$question\"" "$opts" -m ""\"$MODEL\""" >> ""\"$output_file\"" echo $counter echo "Current Question: $question" eval "$exe_cmd"