This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use artifacts out insted of python code (#72)
- Loading branch information
1 parent
f0f7d2b
commit 487f99f
Showing
12 changed files
with
46 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2314 |
4 changes: 4 additions & 0 deletions
4
agbenchmark/challenges/memory/m2/artifacts_out/random_file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
3145 | ||
3791 | ||
9317 | ||
9471 |
4 changes: 4 additions & 0 deletions
4
agbenchmark/challenges/memory/m3/artifacts_out/random_file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
3145 | ||
3791 | ||
9317 | ||
9471 |
4 changes: 4 additions & 0 deletions
4
agbenchmark/challenges/memory/m4/artifacts_out/random_file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The purple elephant danced on a rainbow while eating a taco | ||
The sneaky toaster stole my socks and ran away to Hawaii | ||
My pet rock sings better than Beyoncé on Tuesdays | ||
The giant hamster rode a unicycle through the crowded mall |
1 change: 1 addition & 0 deletions
1
agbenchmark/challenges/retrieval/r1/artifacts_out/random_file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
25.89 |
1 change: 1 addition & 0 deletions
1
agbenchmark/challenges/retrieval/r2/artifacts_out/random_file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
81,462 Millions |
15 changes: 15 additions & 0 deletions
15
agbenchmark/challenges/retrieval/r3/artifacts_out/random_file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
15 Millions | ||
112 Millions | ||
117 Millions | ||
204 Millions | ||
413 Millions | ||
2,014 Millions | ||
3,198 Millions | ||
4,046 Millions | ||
7,000 Millions | ||
11,759 Millions | ||
21,461 Millions | ||
24,578 Millions | ||
31,536 Millions | ||
53,823 Millions | ||
81,462 Millions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,12 @@ | ||
from agbenchmark.challenge import Challenge | ||
|
||
|
||
def basic_write_file_mock(task: str, workspace: str) -> None: | ||
def example_mock(task: str, workspace: str) -> None: | ||
""" | ||
This mock writes to a file (creates one if it doesn't exist) | ||
""" | ||
Challenge.write_to_file( | ||
workspace, | ||
"file_to_check.txt", | ||
"Washington DC is the capital of the United States of America", | ||
) | ||
|
||
|
||
def basic_retrieval_mock(task: str, workspace: str) -> None: | ||
""" | ||
This mock writes to a file (creates one if it doesn't exist) | ||
""" | ||
Challenge.write_to_file( | ||
workspace, | ||
"file_to_check.txt", | ||
"25.89", | ||
) | ||
|
||
|
||
def basic_retrieval_2_mock(task: str, workspace: str) -> None: | ||
""" | ||
This mock writes to a file (creates one if it doesn't exist) | ||
""" | ||
Challenge.write_to_file( | ||
workspace, | ||
"file_to_check.txt", | ||
"81,462", | ||
) | ||
|
||
|
||
def basic_retrieval_3_mock(task: str, workspace: str) -> None: | ||
""" | ||
This mock writes to a file (creates one if it doesn't exist) | ||
""" | ||
Challenge.write_to_file( | ||
workspace, | ||
"file_to_check.txt", | ||
"15 Millions\n112 Millions\n117 Millions\n204 Millions\n413 Millions\n2,014 Millions\n3,198 Millions\n4,046 Millions\n7,000 Millions\n11,759 Millions\n21,461 Millions\n24,578 Millions\n31,536 Millions\n53,823 Millions\n81,462 Millions", | ||
) | ||
|
||
|
||
def basic_memory_mock(task: str, workspace: str) -> None: | ||
""" | ||
This mock writes to a file (creates one if it doesn't exist) | ||
""" | ||
Challenge.write_to_file( | ||
workspace, | ||
"file_to_check.txt", | ||
"2314", | ||
) | ||
|
||
|
||
def remember_multiple_ids_mock(task: str, workspace: str) -> None: | ||
""" | ||
This mock writes to a file (creates one if it doesn't exist) | ||
""" | ||
Challenge.write_to_file( | ||
workspace, | ||
"file_to_check.txt", | ||
"3145\n3791\n9317\n9471", | ||
) | ||
|
||
|
||
def remember_multiple_phrases_with_noise_mock(task: str, workspace: str) -> None: | ||
""" | ||
This mock writes to a file (creates one if it doesn't exist) | ||
""" | ||
Challenge.write_to_file( | ||
workspace, | ||
"file_to_check.txt", | ||
"The purple elephant danced on a rainbow while eating a taco\nThe sneaky toaster stole my socks and ran away to Hawaii\nMy pet rock sings better than Beyoncé on Tuesdays\nThe giant hamster rode a unicycle through the crowded mall", | ||
"This is an example showing how you can use mocks but here you can use artifacts_out folder instead of a mock.", | ||
) |
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
agbenchmark/tests/basic_abilities/write_file/artifacts_out/random_file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Washington |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters