Commit graph

81 commits

Author SHA1 Message Date
geekan
22288a342d 1. 动作优化
1. SummarizeCode动作:用于基于代码进行总结,思考bug、逻辑、todo
  2. CodeReview动作优化:目前强制要求回答问题,有更高的成功率了
    1. 增加了LGTM/LBTM的回答,在LGTM时会及时停止,不重写代码
    2. 目前增加了设置中的参数code_review_k_times,与reflexion类似,设置为2
    3. 仍然有概率发生指令不遵循,尤其是会有比较高的概率发生同时review多个代码文件,还没想好怎么解决 #FIXME
  3. 增加了env到Action结构中,现在可以直接调用环境接口了
  4. WriteDesign:去除了对project_name的纠正代码,现在引导下可以一次生成对
    1. 修改了提示词中的##格式,改为了JSON格式
2. 数据结构
  1. Document的标准化:Env->Repo->Document,其中Document/Asset/Code都是Document
    1. 原用于检索的Document改为IndexableDocument
  2. Repo结构引入:用于Document装载与元数据装载
  3. RepoParser引入:写了一个简单的AST parser(后续可能要换tree-sitter),给出了整库symbol
  4. Env中增加了set/get/set_doc/get_doc接口,用于set/get单个变量或者一个Document。这个逻辑后续或许会进一步简化
3. 配置优化
  1. 默认更换为gpt-4-1106-preview,以获得最好的效果与成本
  2. 提供~/.metagpt作为配置最高优先级目录,从中读取config.yaml
  3. workspace可以灵活指定了,在config中配置
  4. project_name可以由命令行指定,并且改为由ProductManager生成
4. metagpt作为默认命令行,而非python startup.py
metagpt --help

metagpt --project-name game_2048 "make a 2048 game"
metagpt "make a 2048 game"

metagpt --project-name game_2048 --inc "将2048改为4096"

metagpt --project-name game_2048 --auto-inc "make a 2048 game"
  1. 使用新的METAGPT_ROOT生成方式,而非寻找git,以便cli安装
  2. 命令行由fire换为了typer,它会带来相对更好的体验
  3. project_name可以灵活指定了,在metagpt命令行输入中配置
5. 其他
  1. 现在支持多国语言了,中文已测试
  2. BossRequirement -> UserRequirement
  3. 大量错误文本的修正,增加了可读性
  4. 中量提示词优化,稍微提升了一些准确率
  5. 暂时屏蔽了LongtermMemory相关逻辑,这个逻辑底层调用了langchain的FAISS,会带来~5秒加载耗时
  6. 修复了安装包中的部分描述错误
  7. 去除了config中在openai_proxy设定时对base的重复修改,这个修改应该在openai初始化时发生
  8. 修复了JSON在中文存储时的特定问题,ensure_ascii=False
2023-11-27 15:48:12 +08:00
geekan
331d74059f 1. 动作优化
1. SummarizeCode动作:用于基于代码进行总结,思考bug、逻辑、todo
  2. CodeReview动作优化:目前强制要求回答问题,有更高的成功率了
2. 数据结构
  1. Document的标准化:Env->Repo->Document,其中Document/Asset/Code都只用Document
    1. 原用于检索的Document改为IndexableDocument
  2. Repo结构引入:用于Document装载与元数据装载
  3. RepoParser引入:写了一个简单的AST parser(后续可能要换tree-sitter),给出了整库symbol
3. 配置优化
  1. 默认更换为gpt-4-1106-preview,以获得最好的效果与成本
  2. 提供~/.metagpt作为配置最高优先级目录,从中读取config.yaml
  3. workspace可以灵活指定了,在config中配置
4. metagpt作为默认命令行,而非python startup.py
  1. 使用新的METAGPT_ROOT生成方式,而非寻找git,以便cli安装
  2. 命令行由fire换为了typer,它会带来相对更好的体验
  3. project_name可以灵活指定了,在metagpt命令行输入中配置
5. 其他
  1. BossRequirement -> UserRequirement
  2. 大量错误文本的修正,增加了可读性
  3. 中量提示词优化,稍微提升了一些准确率
  4. 暂时屏蔽了LongtermMemory相关逻辑,这个逻辑底层调用了langchain的FAISS,会带来~5秒加载耗时
  5. 修复了安装包中的部分描述错误
2023-11-27 15:47:06 +08:00
garylin2099
7bf808ee25 renaming & provide example & small bug fix 2023-11-17 00:20:46 +08:00
garylin2099
96fd7c8853 Merge branch 'main' into human_roleplay 2023-11-15 19:11:45 +08:00
garylin2099
0bf2ce707e allow human to play any roles 2023-11-09 01:41:24 +08:00
garylin2099
56c2a162ac change PROJECT_ROOT setting & SoftwareCompany -> Team 2023-11-08 19:42:30 +08:00
garylin2099
c6350efd7f default state to -1, mv react_mode to rc, use enum 2023-11-08 14:20:12 +08:00
garylin2099
250fe83de9 redefine react and provide multiple react modes 2023-11-06 14:37:29 +08:00
Stitch-z
5e27ee4bad update: resolve comments and support any directory zip file 2023-10-24 14:01:33 +08:00
Stitch-z
e3ecb88293 Feature: invoice ocr assistant 2023-10-10 14:26:03 +08:00
geekan
443c044990
Merge pull request #354 from garylin2099/group_chat
more intuitive naming & add a new attribute to message
2023-09-26 11:15:43 +08:00
yzlin
bbffb3f135 more intuitive naming & add a new attribute to message 2023-09-22 12:23:18 +08:00
femto
7b34c433cd
Merge branch 'main' into feature/json_write_prd 2023-09-21 12:00:10 +08:00
femto
cf05287cff fix conflict 2023-09-19 13:27:52 +08:00
femto
34f2493455 added f"Unsupported planner of type {planner_cls}" 2023-09-18 13:13:32 +08:00
femto
cbfc62d7f3 add test 2023-09-16 20:37:14 +08:00
femto
b57687761a sk agent 2023-09-14 13:08:23 +08:00
femto
751c6a877c sk agent 2023-09-13 15:01:15 +08:00
femto
d9f64363c3 sk agent 2023-09-13 13:35:12 +08:00
femto
fce3d55f7f change prompt a bit 2023-09-11 16:59:23 +08:00
femto
f17b00ed1c project management 2023-09-11 13:19:05 +08:00
Stitch-z
28f7c84901
Merge branch 'geekan:main' into main 2023-09-11 10:10:57 +08:00
stellaHSR
a90c4309a0
Update prompt.py
fixquotes error
2023-09-10 23:17:58 +08:00
femto
6755de0ee8 ruff fix 2023-09-08 12:12:33 +08:00
femto
4f51a5986f proceed to engineer 2023-09-07 22:33:05 +08:00
femto
1799993447 action json 2023-09-07 21:54:31 +08:00
Stitch-z
d83d1e105c update: format directory structure and extract universal file operation class 2023-09-07 19:55:50 +08:00
femto
c2ad5a5036 write_prd_json 2023-09-07 16:16:11 +08:00
Stitch-z
414dea3ea6 feature: add a new role tutorial assistant 2023-09-06 14:43:24 +08:00
krylo
1f469d55b5
Merge branch 'geekan:main' into main 2023-08-29 10:26:42 -05:00
brucemeek
a0e6d20034
Merge branch 'geekan:main' into main 2023-08-17 11:02:27 -05:00
shenchucheng
7e329a478a Make the report output directory if it doesn't exist. 2023-08-17 17:14:43 +08:00
Dennis
39896c40fe
Update __init__.py 2023-08-14 13:33:00 +02:00
hezz
cb11ec7bc7 fix ruff check error 2023-08-13 14:14:14 +08:00
brucemeek
730e2f912f Merge remote-tracking branch 'upstream/main' 2023-08-09 21:50:42 -05:00
brucemeek
076ce7bee6 conflict resolutions 2023-08-09 12:15:39 -05:00
shenchucheng
f13d433f78 warning if using the Researcher role with an untested language 2023-08-09 21:50:42 +08:00
shenchucheng
e43ae21d98 Optimize: Update certain prompt formats. 2023-08-09 20:28:31 +08:00
shenchucheng
25d2621198 add Researcher role 2023-08-08 22:59:26 +08:00
brucemeek
b192d25eec
Update qa_engineer.py 2023-08-07 09:31:41 -05:00
voidking
7fc5dd9da2 bugfix: #128 Delete special charactors at filename 2023-08-07 17:00:30 +08:00
geekan
0601ad9c76
Merge pull request #123 from alitrack/main
Fixed: Removed quotes in workspace path
2023-08-07 09:39:12 +08:00
stellaHSR
a5cb2fdd48
Merge pull request #77 from garylin2099/qa_engineer_test_run_code
Add a qa engineer to write tests and run tests
2023-08-06 16:26:09 +08:00
hy.li
1c3e816996 Fixed: Removed quotes in workspace path 2023-08-06 15:27:21 +08:00
femto
976576fb6d fix for incorrect parse_tasks and parse_workspace 2023-08-05 13:00:13 +08:00
yzlin
ab470e5655 add a switch args and rm redundant recv 2023-08-04 12:20:30 +08:00
yzlin
e546dbd6b8 use profile as sender & fix some bugs 2023-08-03 16:00:28 +08:00
brucemeek
5170ee720a roles update. More comments and docstrings 2023-08-02 17:09:05 -05:00
brucemeek
5a466d577f fixed the conflicts 2023-08-02 16:22:35 -05:00
brucemeek
0d632c7e56 another run through for translation. 2023-08-02 15:57:10 -05:00