Commit graph

63 commits

Author SHA1 Message Date
莘权 马
ec8c703c5a feat: merge geekan:main 2023-12-08 20:03:13 +08:00
莘权 马
78548c2ddc feat: merge geekan:cli-etc 2023-11-28 18:16:50 +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
莘权 马
fb2167cccf feat: merge geekan:env_factor 2023-11-22 17:19:34 +08:00
莘权 马
cda032948f refactor: pre-commit run --all-files 2023-11-22 16:26:48 +08:00
garylin2099
705a3e962b formatting 2023-11-17 14:40:07 +08:00
garylin2099
7bf808ee25 renaming & provide example & small bug fix 2023-11-17 00:20:46 +08:00
莘权 马
44aa1dd563 refactor: cause_by 2023-11-10 16:48:34 +08:00
莘权 马
a61f3f80e9 refactor: get_by_action(s) 2023-11-10 16:15:07 +08:00
莘权 马
ea9875a7fc fixbug: recursive import 2023-11-09 11:14:05 +08:00
莘权 马
01f23d633e refactor: In accordance with Chapter 2.1.3 of RFC 116, modify the data type of the send_to value of the Message object. 2023-11-08 21:38:52 +08:00
莘权 马
7e83a4bb31 refactor: According to RFC 116: Updated the type of send_to. 2023-11-08 20:56:05 +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
莘权 马
af4c87e123 refactor: rename is_recipient 2023-11-08 13:42:08 +08:00
garylin2099
250fe83de9 redefine react and provide multiple react modes 2023-11-06 14:37:29 +08:00
莘权 马
c6f97f7487 refactor: tx_from/tx_to 2023-11-06 11:47:29 +08:00
莘权 马
b0d451d4d6 refactor: @cause_by.setter 2023-11-04 16:55:51 +08:00
莘权 马
87882bf7ab refactor: @cause_by.setter 2023-11-04 16:54:36 +08:00
莘权 马
8ea52d8a83 refactor: @cause_by.setter 2023-11-04 16:52:21 +08:00
莘权 马
56f544a675 refactor: @cause_by.setter 2023-11-04 16:49:13 +08:00
莘权 马
d9775037b6 refactor: @cause_by.setter 2023-11-04 16:46:32 +08:00
莘权 马
93eda7f4a3 refactor: update notations 2023-11-03 11:05:57 +08:00
莘权 马
a7632e8548 refactor: update notations 2023-11-03 11:04:25 +08:00
莘权 马
545d77ce0d refactor: Refactor Message transmission & filtering 2023-11-01 20:08:58 +08:00
Stitch-z
4a98ecc85c
Merge branch 'geekan:main' into main 2023-10-24 14:06:07 +08:00
Stitch-z
5e27ee4bad update: resolve comments and support any directory zip file 2023-10-24 14:01:33 +08:00
Surav Shrestha
8d2570605a docs: fix typo in examples/agent_creator.py 2023-10-18 18:28:52 +05:45
Stitch-z
d3e45cc2a0 Feature: invoice ocr assistant 2023-10-10 14:55:07 +08:00
Stitch-z
e3ecb88293 Feature: invoice ocr assistant 2023-10-10 14:26:03 +08:00
stellahsr
7da710eaaf add testcase for sk_func and SkSearchEngine 2023-09-23 12:38:23 +08:00
stellaHSR
a709f408b9
Merge pull request #332 from garylin2099/customized_agent_examples
basic examples
2023-09-21 11:51:31 +08:00
yzlin
876094893a minor update 2023-09-21 11:14:10 +08:00
stellaHSR
ab95b55662
Merge pull request #343 from Stitch-z/main
Fix research action bug && Optimize universal file operation tools
2023-09-21 11:08:40 +08:00
Stitch-z
97ab38ac7c Resolve PR issues 2023-09-20 12:02:46 +08:00
yzlin
f040c73ae9 formatting 2023-09-20 11:42:41 +08:00
yzlin
e0381680ad minor update 2023-09-19 23:15:58 +08:00
yzlin
fa8eb17451 add AgentCreator and some minor formatting 2023-09-19 19:31:25 +08:00
Stitch-z
97be431127 Fix research action bug && Optimize universal file operation tools 2023-09-19 16:26:33 +08:00
femto
2cd4870592 test to test dir 2023-09-18 12:46:15 +08:00
femto
49475a0f53 basic_planner_example/action_planner_example 2023-09-16 12:20:57 +08:00
yzlin
c0ce28659d basic examples 2023-09-15 22:40:22 +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
Stitch-z
414dea3ea6 feature: add a new role tutorial assistant 2023-09-06 14:43:24 +08:00
shenchucheng
e43ae21d98 Optimize: Update certain prompt formats. 2023-08-09 20:28:31 +08:00
shenchucheng
2d8a3f1296 add example for the researcher role 2023-08-08 23:02:15 +08:00
leonzh0u
3e13a00003 fix batch query: 2023-07-23 18:25:08 -04:00