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"