Skip to content

Commit

Permalink
adding option for lines width
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Feb 19, 2024
1 parent a57b1af commit fa12415
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
21 changes: 11 additions & 10 deletions bin/simple_grammar.ml
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,17 @@ let () =
let url = ref "" in
let help_str = "test" in
let opts = [
"-s", Arg.Set_string start, "startdir";
"-n", Arg.Set_int item_count, "generate count items";
"-p", Arg.Set_string prompt, "prompt filename";
"-h", Arg.Set_string header_prompt, "header prompt filename";
"-t", Arg.Set_string trailer_prompt, "trailer prompt filename";
"-g", Arg.Set_string grammar, "grammar filename";
"-x", Arg.Set_string suffix, "suffix";
"-m", Arg.Set_string model, "model";
"--llamacpp", Arg.Unit (fun () ->
lang_client := BLlamaCpp new Llama_cpp.llama_cpp_lang_model ; ()
"-s", Arg.Set_string start, "startdir";
"-w", Arg.Set_int window_size, "window_size";
"-n", Arg.Set_int item_count, "generate count items";
"-p", Arg.Set_string prompt, "prompt filename";
"-h", Arg.Set_string header_prompt, "header prompt filename";
"-t", Arg.Set_string trailer_prompt, "trailer prompt filename";
"-g", Arg.Set_string grammar, "grammar filename";
"-x", Arg.Set_string suffix, "suffix";
"-m", Arg.Set_string model, "model";
"--llamacpp", Arg.Unit (fun () ->
lang_client := BLlamaCpp new Llama_cpp.llama_cpp_lang_model ; ()
), " Use Ollama (default)";
"-u", Arg.Set_string url, "url";
] |> Arg.align in
Expand Down
5 changes: 2 additions & 3 deletions sim_dungeon_simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ The script is being used to generate and test various combinations of terms to c
Here is the code we wrote so far " > $PROMPT_NAME2
#head -500 $PROMPT_NAME > $PROMPT_NAME2
cat $PROMPT_NAME >> $PROMPT_NAME2
echo " ENDSRC . Please simulate its execution. Imagine running the code and all the output it would generate. then Imagine running that code. what would the game be like? Please rewrite my question if confusing. " >> $PROMPT_NAME2
echo " ENDSRC . Please imagine the simulation its execution. Imagine running the code and all the output it would generate. Generate a grammar that we can use to generate prompts for create the dungeon using your knowledge. Write the grammar in EBNF notation. We will start with path through the dungeon starting at the entrance and going all the way to the ends." >> $PROMPT_NAME2

dune exec bin/simple.exe -- \
--openai -m "mixtral" -u "https://dev-hub.agentartificial.com" \
-n 20 \
-f $PROMPT_NAME2 \
-s "data/dungeon/sim_dungeon_1_${DS}" \
-x ".txt" \
-n 20
-n 2000

0 comments on commit fa12415

Please sign in to comment.