Code Monkey home page Code Monkey logo

autogen_experiments's Introduction

为什么需要autogen

在使用langchain & code interpreter 过程中,对性能和准确率和性能都有着更高的要求。

而Autogen在这两方面来看,都有一定的提升,而且在中间过程可以接受人的反馈。

autogen

下面根据autogen的论文和实际测试样例,做一些说明。

https://arxiv.org/pdf/2308.08155.pdf

https://github.com/microsoft/autogen

性能对比: Performance

正确率对比 Correctness

AutoGen是什么

AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks. AutoGen agents are customizable, conversable, and seamlessly allow human participation. They can operate in various modes that employ combinations of LLMs, human inputs, and tools.

AutoGen Overview

  • AutoGen enables building next-gen LLM applications based on multi-agent conversations with minimal effort. It simplifies the orchestration, automation, and optimization of a complex LLM workflow. It maximizes the performance of LLM models and overcomes their weaknesses.
  • It supports diverse conversation patterns for complex workflows. With customizable and conversable agents, developers can use AutoGen to build a wide range of conversation patterns concerning conversation autonomy, the number of agents, and agent conversation topology.
  • It provides a collection of working systems with different complexities. These systems span a wide range of applications from various domains and complexities. This demonstrates how AutoGen can easily support diverse conversation patterns.
  • AutoGen provides a drop-in replacement of openai.Completion or openai.ChatCompletion as an enhanced inference API. It allows easy performance tuning, utilities like API unification and caching, and advanced usage patterns, such as error handling, multi-config inference, context programming, etc.

AutoGen is powered by collaborative research studies from Microsoft, Penn State University, and the University of Washington.

Autogen与其他多agent的框架对比

multi_frameworks_compare

AutoGen的主要原因是:

  1. 利用多个 agent 的协作来提高编码的效率和安全性。通过多角色和多轮来完善内容。

  2. 活地定义 agent 的行为和交互模式,通过自然语言或编程语言来控制对话流程。各个角色定位更加清晰。

  3. 使用不同的 LLMs 来实现不同的功能,例如生成代码,执行代码,验证代码,解释结果等。这些功能内置的,通过多轮还强化内容。

  4. 轻松地扩展和重用现有的 agent,通过注册自定义的回复函数来定制 agent 的行为。

使用相同命令下,不同的表现

query the books table, group by column "authors" of top 5 in bar picture

这里有一个authors是为null,python代码会出现异常。 Autogen能检测到后。优化方向有随机性,1)对数据做过滤清洗最后剩下四条,2)对null用""处理,都得到最终结果。

sql_null sql_null2 Screenshot 2023-10-24 at 13 52 54

Autogen默认system prompt

SystemPrompt

从这个prompt可以看到不同类型指令,完成一个比较好的结果。

Autogen未来发展方向

Futurework

通过chainlit快速搭建一个WebUI 应用

Screenshot 2023-10-24 at 22 44 58

autogen_experiments's People

Contributors

huqianghui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.