Commit graph

156 commits

Author SHA1 Message Date
莘权 马
4cb3485c86 feat: After users provide bug feedback, move directly to the WriteCode stage of the process. 2023-12-12 21:32:03 +08:00
莘权 马
ec8c703c5a feat: merge geekan:main 2023-12-08 20:03:13 +08:00
莘权 马
9d84c8f047 feat: +SummarizeCode, refactor project_name 2023-12-08 10:34:57 +08:00
莘权 马
739348e8f1 feat: merge feature/rfc135_merge_send18_dev_config 2023-12-04 10:18:49 +08:00
莘权 马
053eac62bc feat: +annotation 2023-12-01 13:01:43 +08:00
莘权 马
5c149efee7 fixbug: The assumption that messages in 'memory' have been processed has been revoked. 2023-11-30 19:33:27 +08:00
莘权 马
269eee4643 fixbug: The assumption that messages in 'memory' have been processed has been revoked. 2023-11-30 19:20:53 +08:00
莘权 马
6146d4dc7f feat: merge RFC 135 2023-11-30 13:04:29 +08:00
莘权 马
59d97c77e8 feat: merge RFC 135 2023-11-30 13:03:30 +08:00
莘权 马
17bf646539 feat: merge geekan:cli-etc 2023-11-30 12:53:02 +08:00
莘权 马
78548c2ddc feat: merge geekan:cli-etc 2023-11-28 18:16:50 +08:00
莘权 马
49f0b5e9f1 feat: fix memory.add 2023-11-28 16:41:32 +08:00
莘权 马
2d1d55f7cb feat: send_to="Edward", # name of QaEngineer 2023-11-28 16:38:00 +08:00
莘权 马
9745dd12f6 feat: fix memory.add 2023-11-28 16:28:53 +08:00
莘权 马
b794e5d73d feat: fix memory.add 2023-11-28 16:22:40 +08:00
莘权 马
41549e6280 feat: +annotation 2023-11-27 16:11:49 +08:00
莘权 马
94ab03d2da feat: +annotation 2023-11-27 16:02:18 +08:00
莘权 马
ad6cf62d21 feat: +annotation 2023-11-27 15:57:19 +08:00
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
莘权 马
882f22da35 feat: 流程调通 2023-11-24 19:56:27 +08:00
莘权 马
45be71d9bf fixbug: DebugError 2023-11-24 13:36:35 +08:00
莘权 马
75dcc8d534 fixbug: DebugError 2023-11-24 13:30:00 +08:00
莘权 马
10d9f33150 refactor: use MESSAGE_ROUTE_TO_NONE 2023-11-23 23:04:41 +08:00
莘权 马
6d77cd89c8 refactor: delete useless codes 2023-11-23 22:54:22 +08:00
莘权 马
0c201d11e9 feat: merge rfc116 2023-11-23 22:46:17 +08:00
莘权 马
ec3dd004af feat: Change the operation of transmitting file content during the QA process to transmitting file names instead. 2023-11-23 22:41:44 +08:00
莘权 马
3e8bba70bc fixbug: send useless message to nobody from QaEngineer 2023-11-23 21:38:51 +08:00
莘权 马
9a3c92ed11 fixbug: send useless message to nobody from QaEngineer 2023-11-23 21:38:39 +08:00
莘权 马
66cff9023f fixbug: Delete the incorrect message. 2023-11-23 18:10:44 +08:00
莘权 马
2032a38542 feat: rewrite Engineer & WriteCode & WriteCodeReview 2023-11-23 17:49:38 +08:00
莘权 马
0fdeab3f20 fixbug: Message was incorrectly filtered by the profile. 2023-11-23 17:36:01 +08:00
莘权 马
fb2167cccf feat: merge geekan:env_factor 2023-11-22 17:19:34 +08:00
莘权 马
2bf8ef8c6a feat: RFC 135 2023-11-22 17:08:00 +08:00
莘权 马
20ae74e99d feat: Merge geekan:env_refactore 2023-11-22 16:57:42 +08:00
莘权 马
cda032948f refactor: pre-commit run --all-files 2023-11-22 16:26:48 +08:00
莘权 马
27c731d11a feat: archive 2023-11-21 15:05:23 +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
莘权 马
c2ffee61e6 refactor: remove useless code 2023-11-13 20:45:05 +08:00
莘权 马
962109bd11 refactor: notation 2023-11-13 16:26:24 +08:00
莘权 马
23749212bf refactor: rename 2023-11-12 17:41:51 +08:00
莘权 马
7fb33fd890 refactor: cause_by 2023-11-10 16:56:50 +08:00
莘权 马
44aa1dd563 refactor: cause_by 2023-11-10 16:48:34 +08:00
莘权 马
efe6ead27c refactor: notation 2023-11-10 16:30:23 +08:00
莘权 马
e8eeb6cda9 refactor: notation 2023-11-10 16:29:41 +08:00
莘权 马
b1a14d057a refactor: notation 2023-11-10 16:29:26 +08:00
莘权 马
9ebd1d1bbb refactor: notation 2023-11-10 16:28:29 +08:00
莘权 马
fc63cdf4df refactor: cause_by 2023-11-10 16:24:09 +08:00
莘权 马
bb8e2467ea refactor: cause_by 2023-11-10 16:22:02 +08:00