> For the complete documentation index, see [llms.txt](https://docs.avis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avis.net/vi/tich-hop/chat-and-rag/onyx.md).

# Onyx

### Tổng quan <a href="#overview" id="overview"></a>

[Onyx](http://onyx.app/) là giao diện trò chuyện có thể tự lưu trữ và tích hợp với các mô hình AVIS. Onyx có các tính năng:

* Tạo Agent tùy chỉnh
* Tìm kiếm web
* Deep Research
* RAG trên tài liệu tải lên và các ứng dụng được kết nối
* Kết nối với các ứng dụng như Google Drive, Email, Slack, v.v.
* Hỗ trợ MCP và OpenAPI Actions
* Tạo hình ảnh
* Quản lý người dùng/nhóm, RBAC, SSO, v.v.

Bạn có thể triển khai Onyx cho cá nhân hoặc tổ chức lớn.

### [​](https://docs.ollama.com/integrations/onyx#install-onyx)Cài đặt Onyx <a href="#install-onyx" id="install-onyx"></a>

Hãy triển khai Onyx theo [hướng dẫn bắt đầu nhanh](https://docs.onyx.app/deployment/getting_started/quickstart).

{% hint style="info" %}
Tài liệu về tài nguyên/mở rộng quy mô [tại đây](https://docs.onyx.app/deployment/getting_started/resourcing).
{% endhint %}

### [​](https://docs.ollama.com/integrations/onyx#usage-with-ollama)Sử dụng với AVIS <a href="#usage-with-ollama" id="usage-with-ollama"></a>

1. Đăng nhập vào bản Onyx bạn đã triển khai. Nếu chưa có tài khoản, hãy tạo tài khoản trước.

<figure><img src="https://1381001042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBqtOszkBUadA4v68IeIc%2Fuploads%2Fgit-blob-48736679e435ec6e5f0b06deef36c6a5df9ec67a%2Fimage%20(2)%20(1).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

2. Trong quá trình thiết lập, chọn `avis` làm nhà cung cấp LLM.

<figure><img src="https://1381001042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBqtOszkBUadA4v68IeIc%2Fuploads%2Fgit-blob-f56501c9f533a07bcadebd4360929ee9c8fe2aed%2Fimage%20(3).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

3. Nhập **AVIS API URL** rồi chọn mô hình cần dùng.

{% hint style="info" %}
Nếu chạy Onyx trong Docker và cần truy cập mạng nội bộ của máy tính, hãy dùng `http://host.docker.internal` thay cho `http://127.0.0.1`.
{% endhint %}

<figure><img src="https://1381001042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBqtOszkBUadA4v68IeIc%2Fuploads%2Fgit-blob-f3ba073a28865452764d56f7add170b1c4a04823%2Fimage%20(4).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

Bạn cũng có thể kết nối Onyx Cloud qua tab `AVIS Cloud` trong phần thiết lập.

### [​](https://docs.ollama.com/integrations/onyx#send-your-first-query)Gửi truy vấn đầu tiên <a href="#send-your-first-query" id="send-your-first-query"></a>

<figure><img src="https://1381001042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBqtOszkBUadA4v68IeIc%2Fuploads%2Fgit-blob-983a25d0665e76c4ea716bd2f6fc203b660770e6%2Fimage%20(5).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avis.net/vi/tich-hop/chat-and-rag/onyx.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
