Skip to content

Commit

Permalink
refactor examples/FinanceBench Makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVinhLuong102 committed Sep 21, 2024
1 parent 2afe148 commit de1b6d8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions examples/FinanceBench/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
36 changes: 18 additions & 18 deletions examples/FinanceBench/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit de1b6d8

Please sign in to comment.