Lei Xia

Sr. Software Engineer | Solution Architect

Writing code, Enjoying life, Building future

RSS · Sponsor

avatar

Build a weather query agent

August 22, 2024 · 1078 words · 6 min

In the field of artificial intelligence, intelligent agents (Agent) are one of the cutting-edge applications of Large Language Models (LLM).

Understanding the "Temperature" of Large Language Models

August 20, 2024 · 539 words · 3 min

In the realm of artificial intelligence, large language models (LLMs) have become sophisticated tools for generating human-like text. A pivotal concept in steering these models is the “temperature,” which dictates the randomness and creativity of the generated text. This blog post aims to demystify the temperature setting in LLMs and provide a professional overview.

Build Your AI Search Bot with LLM and Search Engines

August 15, 2024 · 938 words · 5 min

In the tide of artificial intelligence, the combination of large language models (LLMs) and search engines has brought revolutionary changes to the field of information retrieval. This article will provide a detailed introduction on how to use these technologies to build an intelligent information retrieval assistant—an AI search bot. We will delve into various aspects such as project background, core principles, code implementation, usage examples, and open-source addresses.

A Comprehensive Overview of The Oauth2.0 Framework

July 28, 2024 · 1391 words · 7 min

OAuth is an authorization approache that simplifies the authorization processes for applications. Manyones may know about Authorization Code Flow, but there are still other approaches. In this article, we’ll learn how it works, covering authorization types, principles and notes.

Retrieval-Augmented Generation

April 24, 2024 · 759 words · 4 min

In the era of information explosion, we are faced with the challenge of vast amounts of data. Retrieving useful information from this data is becoming increasingly difficult for people. To address this issue, researchers have proposed a novel technology called RAG (Retrieval-Augmented Generation).

RAG combines the methods of retrieval and generation to make information extraction from large-scale data more efficient and accurate.

This article will introduce the definition, working principle, and problems addressed by RAG.

Understanding Replication In MySQL

March 17, 2024 · 1328 words · 7 min

MySQL Replication is a process where data from one MySQL database known as the master is copied over to one or more other databases called replicas or slaves. In this article, we’ll learn what replication is, how to enable replication, replication modes and replication forms.

Understanding MVCC In MySQL InnoDB

March 9, 2024 · 1335 words · 7 min

In MySQL, MVCC (Multi-Version Concurrency Control) refers to the concurrency control mechanism used by the InnoDB storage engine. It provides concurrent access to data and ensures data consistency and isolation in a multi-user environment.

Implementing timer in mio

March 5, 2024 · 441 words · 3 min

Mio is a high-performance, low-level I/O library for Rust that focuses on non-blocking APIs and event notification. While Mio provides powerful capabilities for building I/O applications, it does not include a built-in timer feature. In this article, we will explore how to implement a timer in Mio.