From de1b6d80d15a9153a431fb9f7c3f96ad3a108174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=20Vinh=20LUONG=20=28L=C6=AF=C6=A0NG=20Th=E1=BA=BF=20Vi?= =?UTF-8?q?nh=29?= Date: Fri, 20 Sep 2024 20:22:21 -0700 Subject: [PATCH] refactor examples/FinanceBench Makefiles --- examples/FinanceBench/Makefile | 18 ++++++++--------- examples/FinanceBench/make.bat | 36 +++++++++++++++++----------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/examples/FinanceBench/Makefile b/examples/FinanceBench/Makefile index 2b9a606b2..c5d909647 100644 --- a/examples/FinanceBench/Makefile +++ b/examples/FinanceBench/Makefile @@ -1,28 +1,28 @@ -agent-solve: +dana-solve: @poetry run python dana.py ${id} -agent-solve-w-knowledge: +dana-solve-w-knowledge: @poetry run python dana.py ${id} --knowledge -agent-solve-w-prog-store: +dana-solve-w-prog-store: @poetry run python dana.py ${id} --prog-store -agent-solve-w-knowledge-and-prog-store: +dana-solve-w-knowledge-and-prog-store: @poetry run python dana.py ${id} --knowledge --prog-store -agent-solve-w-llama3: +dana-solve-w-llama3: @poetry run python dana.py ${id} --llama3 -agent-solve-w-knowledge-w-llama3: +dana-solve-w-knowledge-w-llama3: @poetry run python dana.py ${id} --knowledge --llama3 -agent-solve-w-prog-store-w-llama3: +dana-solve-w-prog-store-w-llama3: @poetry run python dana.py ${id} --prog-store --llama3 -agent-solve-w-knowledge-and-prog-store-w-llama3: +dana-solve-w-knowledge-and-prog-store-w-llama3: @poetry run python dana.py ${id} --knowledge --prog-store --llama3 -agent-solve-all-combos: +dana-solve-all-combos: @poetry run python dana.py ${id} @poetry run python dana.py ${id} --knowledge @poetry run python dana.py ${id} --prog-store diff --git a/examples/FinanceBench/make.bat b/examples/FinanceBench/make.bat index df0781760..d086751c5 100644 --- a/examples/FinanceBench/make.bat +++ b/examples/FinanceBench/make.bat @@ -5,15 +5,15 @@ :: ======= SET TARGET=%1 -IF "%TARGET%"=="agent-solve" GOTO agent-solve -IF "%TARGET%"=="agent-solve-w-prog-store" GOTO agent-solve-w-prog-store -IF "%TARGET%"=="agent-solve-w-knowledge" GOTO agent-solve-w-knowledge -IF "%TARGET%"=="agent-solve-w-knowledge-and-prog-store" GOTO agent-solve-w-knowledge-and-prog-store -IF "%TARGET%"=="agent-solve-w-llama3" GOTO agent-solve-w-llama3 -IF "%TARGET%"=="agent-solve-w-prog-store-w-llama3" GOTO agent-solve-w-prog-store-w-llama3 -IF "%TARGET%"=="agent-solve-w-knowledge-w-llama3" GOTO agent-solve-w-knowledge-w-llama3 -IF "%TARGET%"=="agent-solve-w-knowledge-and-prog-store-w-llama3" GOTO agent-solve-w-knowledge-and-prog-store-w-llama3 -IF "%TARGET%"=="agent-solve-all-combos" GOTO agent-solve-all-combos +IF "%TARGET%"=="dana-solve" GOTO dana-solve +IF "%TARGET%"=="dana-solve-w-prog-store" GOTO dana-solve-w-prog-store +IF "%TARGET%"=="dana-solve-w-knowledge" GOTO dana-solve-w-knowledge +IF "%TARGET%"=="dana-solve-w-knowledge-and-prog-store" GOTO dana-solve-w-knowledge-and-prog-store +IF "%TARGET%"=="dana-solve-w-llama3" GOTO dana-solve-w-llama3 +IF "%TARGET%"=="dana-solve-w-prog-store-w-llama3" GOTO dana-solve-w-prog-store-w-llama3 +IF "%TARGET%"=="dana-solve-w-knowledge-w-llama3" GOTO dana-solve-w-knowledge-w-llama3 +IF "%TARGET%"=="dana-solve-w-knowledge-and-prog-store-w-llama3" GOTO dana-solve-w-knowledge-and-prog-store-w-llama3 +IF "%TARGET%"=="dana-solve-all-combos" GOTO dana-solve-all-combos IF "%TARGET%"=="langchain-react-solve" GOTO langchain-react-solve IF "%TARGET%"=="openai-assist" GOTO openai-assist @@ -31,39 +31,39 @@ IF "%TARGET%"=="streamlit-run" GOTO streamlit-run :: BATCH INFERENCING :: ================= -:agent-solve +:dana-solve poetry run python dana.py %2 GOTO end -:agent-solve-w-knowledge +:dana-solve-w-knowledge poetry run python dana.py %2 --knowledge GOTO end -:agent-solve-w-prog-store +:dana-solve-w-prog-store poetry run python dana.py %2 --prog-store GOTO end -:agent-solve-w-knowledge-and-prog-store +:dana-solve-w-knowledge-and-prog-store poetry run python dana.py %2 --knowledge --prog-store GOTO end -:agent-solve-w-llama3 +:dana-solve-w-llama3 poetry run python dana.py %2 --llama3 GOTO end -:agent-solve-w-knowledge-w-llama3 +:dana-solve-w-knowledge-w-llama3 poetry run python dana.py %2 --knowledge --llama3 GOTO end -:agent-solve-w-prog-store-w-llama3 +:dana-solve-w-prog-store-w-llama3 poetry run python dana.py %2 --prog-store --llama3 GOTO end -:agent-solve-w-knowledge-and-prog-store-w-llama3 +:dana-solve-w-knowledge-and-prog-store-w-llama3 poetry run python dana.py %2 --knowledge --prog-store --llama3 GOTO end -:agent-solve-all-combos +:dana-solve-all-combos poetry run python dana.py %2 poetry run python dana.py %2 --knowledge poetry run python dana.py %2 --prog-space