> For the complete documentation index, see [llms.txt](https://developer.chatx.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.chatx.vn/document-chatx/tinh-nang/che-do-chuyen-gia-nhac-nho/mau-nhac-nho.md).

# Mẫu nhắc nhở

Để đáp ứng các yêu cầu tùy chỉnh hơn của các nhà phát triển đối với LLM, ChatX đã hoàn toàn mở các gợi ý tích hợp hoàn chỉnh trong **Chế độ Chuyên gia** và cung cấp các mẫu ban đầu trong giao diện soạn thảo. Dưới đây là bốn mẫu ban đầu để tham khảo:

## 1. Sử dụng các mô hình Chat để xây dựng ứng dụng Hội thoại <a href="#id-1.-using-chat-models-to-build-conversational-apps" id="id-1.-using-chat-models-to-build-conversational-apps"></a>

* **SYSTEM**

```
Use the following context as your learned knowledge, inside <context></context> XML tags.

<context>
{{#context#}}
</context>

When answer to user:
- If you don't know, just say that you don't know.
- If you don't know when you are not sure, ask for clarification.
Avoid mentioning that you obtained the information from the context.
And answer according to the language of the user's question.
{{pre_prompt}}
```

* **USER**

```
{{Query}} //Enter the Query variables here.
```

* **ASSITANT**

```
""
```

#### **Cấu trúc Prompt:**

* `Context`
* `Pre-prompt`
* `Query`

## 2. Sử dụng các mô hình Chat để xây dựng ứng dụng Tạo văn bản <a href="#id-2.-using-chat-models-to-build-text-generator-apps" id="id-2.-using-chat-models-to-build-text-generator-apps"></a>

* **SYSTEM**

```
Use the following context as your learned knowledge, inside <context></context> XML tags.

<context>
{{#context#}}
</context>

When answer to user:
- If you don't know, just say that you don't know.
- If you don't know when you are not sure, ask for clarification.
Avoid mentioning that you obtained the information from the context.
And answer according to the language of the user's question.
{{pre_prompt}}
```

* **USER**

```
{{Query}} //Enter the Query variables here.
```

* **ASSITANT**

```
""
```

#### **Cấu trúc Prompt:**

* `Context`
* `Pre-prompt`
* `Query`

## 3. Sử dụng các mô hình Hoàn chỉnh để xây dựng ứng dụng Hội thoại <a href="#id-3.-using-complete-models-to-build-conversational-apps" id="id-3.-using-complete-models-to-build-conversational-apps"></a>

```
Use the following context as your learned knowledge, inside <context></context> XML tags.

<context>
{{#context#}}
</context>

When answer to user:
- If you don't know, just say that you don't know.
- If you don't know when you are not sure, ask for clarification.
Avoid mentioning that you obtained the information from the context.
And answer according to the language of the user's question.

{{pre_prompt}}

Here is the chat histories between human and assistant, inside <histories></histories> XML tags.

<histories>
{{#histories#}}
</histories>


Human: {{#query#}}

Assistant: 
```

#### **Cấu trúc Prompt:**

* `Context`
* `Pre-prompt`
* `History`
* `Query`

## 4. Sử dụng các mô hình Hoàn chỉnh để xây dựng ứng dụng Tạo văn bản <a href="#id-4.-using-complete-models-to-build-text-generator-apps" id="id-4.-using-complete-models-to-build-text-generator-apps"></a>

```
Use the following context as your learned knowledge, inside <context></context> XML tags.

<context>
{{#context#}}
</context>

When answer to user:
- If you don't know, just say that you don't know.
- If you don't know when you are not sure, ask for clarification.
Avoid mentioning that you obtained the information from the context.
And answer according to the language of the user's question.

{{pre_prompt}}
{{query}}
```

#### **Cấu trúc Prompt:**

* `Context`
* `Pre-prompt`
* `Query`

{% hint style="info" %}
ChatX đã hợp tác với một số nhà cung cấp mô hình để tối ưu hóa sâu hệ thống nhắc nhở, và các mẫu ban đầu cho một số mô hình có thể khác so với các ví dụ được cung cấp ở trên.
{% endhint %}

## Định nghĩa tham số:

* **Ngữ cảnh**: Được sử dụng để chèn văn bản liên quan từ kiến thức vào các gợi ý hoàn chỉnh.
* **Tiền nhắc nhở**: Tiền nhắc nhở được sắp xếp trong Chế độ Cơ bản được chèn vào các gợi ý hoàn chỉnh.
* **Lịch sử**: Khi xây dựng một ứng dụng chat sử dụng các mô hình tạo văn bản, hệ thống chèn lịch sử cuộc trò chuyện của người dùng làm ngữ cảnh vào các gợi ý hoàn chỉnh. Vì một số mô hình có thể phản hồi khác nhau với các tiền tố vai trò, bạn cũng có thể thay đổi tên tiền tố vai trò trong cài đặt lịch sử cuộc trò chuyện, ví dụ, thay đổi tên "Assistant" thành "AI".
* **Câu hỏi**: Nội dung câu hỏi đại diện cho các giá trị biến được sử dụng để chèn các câu hỏi mà người dùng nhập trong cuộc trò chuyện.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.chatx.vn/document-chatx/tinh-nang/che-do-chuyen-gia-nhac-nho/mau-nhac-nho.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
