MetaGPT/metagpt/utils
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
..
__init__.py fix ruff check error 2023-08-13 14:14:14 +08:00
common.py Merge branch 'main' into feature-invoice-ocr-assistant 2023-10-10 14:27:26 +08:00
custom_decoder.py modified 2023-09-19 12:23:22 +08:00
file.py Update: cancel block writing when writing files && change the file printing log level to debug level 2023-09-20 15:01:47 +08:00
get_template.py json/markdown format 2023-09-20 12:09:10 +08:00
highlight.py add support for open-interpreter. 2023-09-13 15:47:51 +08:00
index.html compress index.html 2023-09-18 17:25:15 +08:00
json_to_markdown.py json to markdown 2023-09-11 12:48:44 +08:00
make_sk_kernel.py make_sk_kernel add_chat_service "chat_completion" 2023-09-18 13:22:39 +08:00
mermaid.py 1. 动作优化 2023-11-27 15:47:06 +08:00
mmdc_ink.py change to async 2023-09-13 12:41:38 +08:00
mmdc_playwright.py change to async 2023-09-13 12:41:38 +08:00
mmdc_pyppeteer.py use config for PYPPETEER_EXECUTABLE_PATH 2023-09-13 14:39:51 +08:00
parse_html.py Optimize: Update certain prompt formats. 2023-08-09 20:28:31 +08:00
pycst.py add docs for metagpt/actions/write_docstring.py 2023-08-06 19:45:06 +08:00
read_document.py another run through for translation. 2023-08-02 15:57:10 -05:00
serialize.py fix ltm serialize_message 2023-09-25 13:36:34 +08:00
singleton.py another run through for translation. 2023-08-02 15:57:10 -05:00
special_tokens.py 1. record news in rc; 2. add msg sent to; 3. qa_engineer restructure 2023-07-31 02:12:34 +08:00
text.py Updated docstring for the prompt_template in the generate_prompt_chunk function 2023-08-09 21:55:46 +08:00
token_counter.py 1. 动作优化 2023-11-27 15:47:06 +08:00