Skip to content
2 min read Agentic AI

[Course Summary] - Agentic AI: Development of the use of language models in an agentic format

Learn language model training techniques. Prompting and evolution of the Agentic Language Model that enables AI to intelligently interact with the environment, with ways to solve limitations and use auxiliary tools.

ตัวอย่างการทำนายคำถัดไปโดยโมเดลภาษา

Language models are at the heart of AI that allow the system to predict the next word in a sentence from a received message. These models are developed to understand and generate contextually appropriate messages. They are trained with a huge amount of information from the Internet, books, and public sources to be well-rounded and able to respond to questions or instructions received accurately.

ตัวอย่างการทำนายคำถัดไปโดยโมเดลภาษา

Language Model Training: Pre-Training and Post-Training Steps

Language model training is divided into two main stages:

ตัวอย่างข้อมูลชุดคำสั่งและคำตอบสำหรับการเทรนโมเดล

Language Model Implementation and Prompting

Language models typically take input data as freeform text and generate responses based on commands or questions received. It is very important to prepare a prompt so that the model clearly understands the needs and responds correctly.

A good Prompt preparation principle should include:

หลักการเตรียม Prompt ที่ดีสำหรับโมเดลภาษา

Examples of using Chain of Thought to solve problems

For example, when the model is given to evaluate whether a student's answer is correct or not. Instead of having the model answer right away, you might let the model solve the problem and generate its own answer first. Then compare it with the students' answers. This allows the model to provide more accurate and logical answers.

ตัวอย่างการใช้ Chain of Thought กับโมเดลภาษา

Limitations of language models and how to fix them

Although language models are highly effective, there are still limitations that need to be addressed, such as:

One of the solutions is to use techniques. Retrieval Augmented Generation (RAG) This reduces the problem of generating data errors by using relevant information from databases or external sources to compile answers.

การใช้งาน Retrieval Augmented Generation เพื่อลดปัญหา Hallucination

Tool Usage with Language Models

Language models usually only receive and send messages. However, increasing the ability of the model to use external tools such as calling API This allows the model to perform complex tasks and respond better to real-world situations.

For example, when a model is asked, "What is the weather like in San Francisco?" The model generates commands for external systems to call the API, retrieve the actual weather data, and then send the results back to the model so that the model generates appropriate and user-friendly responses.

ตัวอย่างการใช้งาน API ร่วมกับโมเดลภาษา

Agentic Language Model: A language model with the ability to interact with the environment.

Agentic Language Model It is the evolution of language models that not only receive and send messages, but can also interact with the external environment, such as using tools, searching for information, and storing data in memory to make decisions and take continuous action.

ภาพรวมการทำงานของ Agentic Language Model

Agentic Language Model It consists of two main parts:

Examples of using the Agentic Language Model in customer service

Let's say a customer asks, "Can I get a refund for this item?" system Agentic AI It works by dividing the question into sub-steps, such as:

  1. Check the company's refund policy.
  2. Review customer information
  3. Check the information of the products ordered by the customer.
  4. Summarize and decide whether to allow a refund or not.

At each stage, the model runs an API or external database system to retrieve the necessary data, then processes all the data and generates the right answer for the customer.

ตัวอย่างการทำงานของ Agentic AI ในงานบริการลูกค้า

Design and Implementation of the Agentic Language Model

design Agentic AI It has a variety of variations, which allows the model to work more complex and efficiently. The main guidelines are as follows:

1. Planning

Let the model help plan and divide complex tasks into clear subtasks to ensure systematic and efficient execution.

2. Reflection

Use the model to evaluate and critique the results generated by the model itself to improve and increase accuracy, such as having the model review and modify the code before delivery.

ตัวอย่างการใช้ Reflection ในการปรับปรุงโค้ด

3. Tool Usage

Allow models to run external tools, such as APIs, or run code in sandboxes to help achieve more accurate and responsive results.

4. Multi-Agent Collaboration

Divide the work into small pieces and assign each agent a specific function, such as climate controllers, smart home lighting controllers, and use a central system to coordinate between these agents.

ตัวอย่าง Multi-Agent Collaboration ในระบบบ้านอัจฉริยะ

Practical Applications of Agentic AI

Agentic AI is used in a variety of fields, such as:

Evaluation and Precautions for Using Agentic AI

Agentic AI evaluation is more complex than evaluating a simple language model because it requires consideration of the functionality of multiple agents and their interactions with each other.

One effective way is to use another language model that acts as an evaluator ( LLM as Judge ) may use the Reflection To make the assessment more detailed and reliable.

การใช้ LLM เป็นผู้ประเมินผล Agentic AI

In addition, criteria and monitoring systems should be established to prevent ethical problems such as the creation of false information or inappropriate content ( Hallucination You may use a small model or a classifier to check the results before using them.

How to get started with Agentic AI?

The recommendation is to start by using the simplified language model first in the Playground of the model provider to experiment with creating a prompt and see the results, and then moving to use the API in the development of the actual application.

Once you understand the basics, you can experiment with the Agentic Language Model features and existing frameworks to create a more complex and responsive system.

Resources and Keeping Up with AI News

Because the AI industry and language models are changing rapidly. Tracking news And new research from experts through channels such as Twitter, YouTube, and online courses is important.

It is important to find reliable sources that are appropriate for your level of knowledge so that you can constantly update new techniques and guidelines.

Technical Glossary

Conclusion from Insiderly

Agentic AI is an important step in developing language models that can work intelligently and flexibly with the outside world. By incorporating techniques such as planning, reflection, and the use of complementary tools, AI can solve complex problems and meet user needs much better.

For those interested in getting started, it's a good idea to experiment with language models at a basic level first, and then expand to Agentic AI using existing tools and frameworks.

Evaluation and ethical criteria should not be overlooked because data reliability and security are at the heart of the widespread use of AI.