> 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/bat-dau/cai-dat-tu-luu-tru.md).

# Cài đặt (Tự lưu trữ)

Phiên bản tự lưu trữ của ChatX, là mã nguồn mở trên [GitHub](https://github.com/langgenius/dify), có thể triển khai bằng một trong hai cách sau:

1. [Triển khai thông qua Docker Compose](https://app.gitbook.com/o/pG6KzxmaEkQ360iMDyVE/s/pVcNbQMBwKMK3VDqSUBr/~/changes/6/bat-dau/cai-dat-tu-luu-tru/trien-khai-thong-qua-docker-compose)
2. [Bắt đầu từ mã nguồn cục bộ](https://app.gitbook.com/o/pG6KzxmaEkQ360iMDyVE/s/pVcNbQMBwKMK3VDqSUBr/~/changes/6/bat-dau/cai-dat-tu-luu-tru/bat-dau-tu-ma-nguon-cuc-bo)

## **Đóng góp**&#x20;

Để đảm bảo xem xét đúng đắn, tất cả các đóng góp mã nguồn - bao gồm cả những đóng góp từ các nhà phát triển có quyền truy cập trực tiếp - phải được nộp qua các pull requests và được duyệt bởi nhóm phát triển chính trước khi được hợp nhất.

Chúng tôi hoan nghênh tất cả các pull requests! Nếu bạn muốn giúp đỡ, hãy xem Hướng dẫn Đóng góp để biết thêm thông tin về cách bắt đầu.


---

# 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/bat-dau/cai-dat-tu-luu-tru.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.
