Table of Contents
Mode 1. Reflection
Mode 2. Tool Use
Mode 4. Multiagent Collaboration
Home Technology peripherals AI Several design patterns that excellent agents must learn, you can learn them in one go

Several design patterns that excellent agents must learn, you can learn them in one go

May 30, 2024 am 09:44 AM
gpt agent agent

Hello everyone, I am Lao Du.

Yesterday I listened to the AI ​​Hospital Town shared by Tsinghua University Intelligent Industry Research Institute at the company.

Several design patterns that excellent agents must learn, you can learn them in one goPicture

This is a virtual world where all doctors, nurses, and patients are Agent intelligences driven by LLM , can interact autonomously. They simulated the entire process of diagnosis and treatment, and achieved a state-of-the-art accuracy of 93.06% on a subset of the MedQA data set covering major respiratory diseases.

An excellent intelligent agent is inseparable from excellent design patterns. After reading this case, I quickly read the four main Agent design patterns recently published by Mr. Andrew Ng.


Andrew Ng is one of the most authoritative scholars in the world in the field of artificial intelligence and machine learning


Then, quickly sort it out and share it with everyone.

Mode 1. Reflection

In this mode, the results generated for the first time by the large model are not directly output. Instead, the results are thrown back to the large model for inspection and evaluation.

It will produce a second version of the result that may work better than the first version.

In the words of Confucius, this is called "I examine myself three times a day."

The specific Prompt written in this mode can use several reasoning modes we shared before, such as: few-shot (Few-shot), chain of thought (CoT) ), Tree of Thinking (ToT), ReAct, etc.

The core purpose of this model is to maximize the reasoning capabilities of large models without resorting to external forces.

Mode 2. Tool Use

This mode allows the agent to use external tools to perform specific tasks.

To put it bluntly, it means "shake people and leave professional matters to professionals."

The essence of the large model is text prediction, and it does not have the ability to do arithmetic, code execution, etc. When encountering these tasks, we can let the large model generate equations and codes, and then call the calculator and code interpreter to complete them.

The Agent in this mode seems to become more powerful with external help.

Mode 3. Planning

This mode allows the agent to decompose a complex task into A series of simple small tasks and then solved one by one.

In fact, it means "How many steps do you need to put an elephant in the refrigerator?" When I first heard this question, I was confused, but when I saw the picture below, I thought It suddenly dawned on me.

Several design patterns that excellent agents must learn, you can learn them in one goPicture

Mode 4. Multiagent Collaboration

After the Agent in the previous mode breaks down complex tasks, it is natural that multiple Agents are required to perform their respective duties and cooperate with each other to complete complex tasks together.

Several design patterns that excellent agents must learn, you can learn them in one goPicture

We have shared an open source AI programmer GPT Pilot before. His design idea is multi-Agent mode, simulation He has played various roles such as product managers, architects, programmers, and testers to complete software development tasks.

The AI ​​hospital town introduced at the beginning of the article also has this model. I will also share practical cases of this model in the future.

The above is the detailed content of Several design patterns that excellent agents must learn, you can learn them in one go. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The ultimate weapon for Kubernetes debugging: K8sGPT The ultimate weapon for Kubernetes debugging: K8sGPT Feb 26, 2024 am 11:40 AM

As artificial intelligence and machine learning technologies continue to develop, companies and organizations have begun to actively explore innovative strategies to leverage these technologies to enhance competitiveness. K8sGPT[2] is one of the most powerful tools in this field. It is a GPT model based on k8s, which combines the advantages of k8s orchestration with the excellent natural language processing capabilities of the GPT model. What is K8sGPT? Let’s look at an example first: According to the K8sGPT official website: K8sgpt is a tool designed for scanning, diagnosing and classifying kubernetes cluster problems. It integrates SRE experience into its analysis engine to provide the most relevant information. Through the application of artificial intelligence technology, K8sgpt continues to enrich its content and help users understand more quickly and accurately.

Should I choose MBR or GPT as the hard disk format for win7? Should I choose MBR or GPT as the hard disk format for win7? Jan 03, 2024 pm 08:09 PM

When we use the win7 operating system, sometimes we may encounter situations where we need to reinstall the system and partition the hard disk. Regarding the issue of whether win7 hard disk format requires mbr or gpt, the editor thinks that you still have to make a choice based on the details of your own system and hardware configuration. In terms of compatibility, it is best to choose the mbr format. For more details, let’s take a look at how the editor did it~ Win7 hard disk format requires mbr or gpt1. If the system is installed with Win7, it is recommended to use MBR, which has good compatibility. 2. If it exceeds 3T or install win8, you can use GPT. 3. Although GPT is indeed more advanced than MBR, MBR is definitely invincible in terms of compatibility. GPT and MBR areas

In-depth understanding of Win10 partition format: GPT and MBR comparison In-depth understanding of Win10 partition format: GPT and MBR comparison Dec 22, 2023 am 11:58 AM

When partitioning their own systems, due to the different hard drives used by users, many users do not know whether the win10 partition format is gpt or mbr. For this reason, we have brought you a detailed introduction to help you understand the difference between the two. Win10 partition format gpt or mbr: Answer: If you are using a hard drive exceeding 3 TB, you can use gpt. gpt is more advanced than mbr, but mbr is still better in terms of compatibility. Of course, this can also be chosen according to the user's preferences. The difference between gpt and mbr: 1. Number of supported partitions: 1. MBR supports up to 4 primary partitions. 2. GPT is not limited by the number of partitions. 2. Supported hard drive size: 1. MBR only supports up to 2TB

How to determine whether the computer hard drive uses GPT or MBR partitioning method How to determine whether the computer hard drive uses GPT or MBR partitioning method Dec 25, 2023 pm 10:57 PM

How to check whether a computer hard disk is a GPT partition or an MBR partition? When we use a computer hard disk, we need to distinguish between GPT and MBR. In fact, this checking method is very simple. Let's take a look with me. How to check whether the computer hard disk is GPT or MBR 1. Right-click 'Computer' on the desktop and click "Manage" 2. Find "Disk Management" in "Management" 3. Enter Disk Management to see the general status of our hard disk, then How to check the partition mode of my hard disk, right-click "Disk 0" and select "Properties" 4. Switch to the "Volume" tab in "Properties", then we can see the "Disk Partition Form" and you can see it as Problems related to MBR partition win10 disk How to convert MBR partition to GPT partition >

Fudan NLP team released an 80-page overview of large-scale model agents, providing an overview of the current situation and future of AI agents in one article Fudan NLP team released an 80-page overview of large-scale model agents, providing an overview of the current situation and future of AI agents in one article Sep 23, 2023 am 09:01 AM

Recently, the Fudan University Natural Language Processing Team (FudanNLP) launched a review paper on LLM-basedAgents. The full text is 86 pages long and has more than 600 references! Starting from the history of AIAgent, the authors comprehensively sort out the current status of intelligent agents based on large-scale language models, including: the background, composition, application scenarios of LLM-basedAgent, and the agent society that has attracted much attention. At the same time, the authors discussed forward-looking and open issues related to Agent, which are of great value to the future development trends of related fields. Paper link: https://arxiv.org/pdf/2309.07864.pdfLLM-basedAgent paper list:

How many of the three major flaws of LLM do you know? How many of the three major flaws of LLM do you know? Nov 26, 2023 am 11:26 AM

Science: Far from being an eternally benevolent and beneficial entity, the sentient general AI of the future is likely to be a manipulative sociopath that eats up all your personal data and then collapses when it is needed most. Translated from 3WaysLLMsCanLetYouDown, author JoabJackson. OpenAI is about to release GPT-5, and the outside world has high hopes for it. The most optimistic predictions even believe that it will achieve general artificial intelligence. But at the same time, CEO Sam Altman and his team face a number of serious obstacles in bringing it to market, something he acknowledged earlier this month. There are some recently published research papers that may provide clues to Altman's challenge. Summary of these papers

GPT large language model Alpaca-lora localization deployment practice GPT large language model Alpaca-lora localization deployment practice Jun 01, 2023 pm 09:04 PM

Model introduction: The Alpaca model is an LLM (Large Language Model, large language) open source model developed by Stanford University. It is fine-tuned from the LLaMA7B (7B open source by Meta company) model on 52K instructions. It has 7 billion model parameters (the larger the model parameters, the larger the model parameters). , the stronger the model's reasoning ability, of course, the higher the cost of training the model). LoRA, the full English name is Low-RankAdaptation of Large Language Models, literally translated as low-level adaptation of large language models. This is a technology developed by Microsoft researchers to solve the fine-tuning of large language models. If you want a pre-trained large language model to be able to perform a specific domain

How has the GPT technology chosen by Bill Gates evolved, and whose life has it revolutionized? How has the GPT technology chosen by Bill Gates evolved, and whose life has it revolutionized? May 28, 2023 pm 03:13 PM

Xi Xiaoyao Science and Technology Talks Original Author | IQ has dropped completely, Python What will happen if machines can understand and communicate in a way similar to humans? This has been a topic of great concern in the academic community, and thanks to a series of breakthroughs in natural language processing in recent years, we may be closer than ever to achieving this goal. At the forefront of this breakthrough is Generative Pre-trained Transformer (GPT) - a deep neural network model specifically designed for natural language processing tasks. Its outstanding performance and ability to conduct effective conversations have made it one of the most widely used and effective models in the field, attracting considerable attention from research and industry. In a recent detailed

See all articles