Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Action Graph Solver Version 0.1 #1428

Merged
merged 5 commits into from
Aug 1, 2024

Conversation

didiforgithub
Copy link
Contributor

Features

  • update action graph solver's basic Implement

@codecov-commenter
Copy link

codecov-commenter commented Jul 31, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 4.08163% with 141 lines in your changes missing coverage. Please review.

Project coverage is 35.57%. Comparing base (5446c7e) to head (d671e6c).

Files Patch % Lines
metagpt/actions/code_sanitize.py 3.96% 121 Missing ⚠️
metagpt/actions/action_node.py 4.76% 20 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@                Coverage Diff                @@
##           action_graph    #1428       +/-   ##
=================================================
- Coverage         62.34%   35.57%   -26.78%     
=================================================
  Files               283      284        +1     
  Lines             17371    17518      +147     
=================================================
- Hits              10830     6232     -4598     
- Misses             6541    11286     +4745     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

examples/ags/benchmark/hotpotQA.py Outdated Show resolved Hide resolved
examples/ags/benchmark/hotpotQA.py Outdated Show resolved Hide resolved
examples/ags/benchmark/humaneval.py Outdated Show resolved Hide resolved
examples/ags/benchmark/humaneval.py Outdated Show resolved Hide resolved
examples/ags/w_action_node/graph.py Outdated Show resolved Hide resolved
examples/ags/w_action_node/graph.py Show resolved Hide resolved
examples/ags/w_action_node/prompt.py Outdated Show resolved Hide resolved
metagpt/actions/code_sanitize.py Show resolved Hide resolved
examples/ags/benchmark/gsm8k.py Outdated Show resolved Hide resolved
examples/ags/benchmark/gsm8k.py Outdated Show resolved Hide resolved
examples/ags/benchmark/gsm8k.py Outdated Show resolved Hide resolved
examples/ags/benchmark/gsm8k.py Outdated Show resolved Hide resolved
examples/ags/benchmark/gsm8k.py Outdated Show resolved Hide resolved
metagpt/actions/code_sanitize.py Outdated Show resolved Hide resolved
metagpt/actions/code_sanitize.py Show resolved Hide resolved
metagpt/actions/code_sanitize.py Show resolved Hide resolved
examples/ags/w_action_node/graph.py Outdated Show resolved Hide resolved
test.py Outdated Show resolved Hide resolved
@@ -0,0 +1,1319 @@
{"question":"Janet\u2019s ducks lay 16 eggs per day. She eats three for breakfast every morning and bakes muffins for her friends every day with four. She sells the remainder at the farmers' market daily for $2 per fresh duck egg. How much in dollars does she make every day at the farmers' market?","answer":"Janet sells 16 - 3 - 4 = <<16-3-4=9>>9 duck eggs a day.\nShe makes 9 * 2 = $<<9*2=18>>18 every day at the farmer\u2019s market.\n#### 18"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not load hf dataset directly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有关HotPotQA与GSM8k数据集评测的内容之后@issacjinyu来再做一次提交

examples/ags/benchmark/gsm8k.py Outdated Show resolved Hide resolved
examples/ags/benchmark/gsm8k.py Outdated Show resolved Hide resolved
examples/ags/benchmark/hotpotQA.py Outdated Show resolved Hide resolved
examples/ags/benchmark/humaneval.py Outdated Show resolved Hide resolved
examples/ags/w_action_node/operator.py Outdated Show resolved Hide resolved
examples/ags/w_action_node/prompt.py Outdated Show resolved Hide resolved

return test_cases

async def llm_extract_test_case(id, problem_description: str, file_path:str="public_test.jsonl"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put test_case in your ut files?

metagpt/actions/action_node.py Outdated Show resolved Hide resolved
metagpt/actions/action_node.py Outdated Show resolved Hide resolved
test.py Outdated Show resolved Hide resolved
examples/ags/w_action_node/utils.py Outdated Show resolved Hide resolved
@geekan geekan merged commit d867b60 into geekan:action_graph Aug 1, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants