> For the complete documentation index, see [llms.txt](https://docs.dmflow.chat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dmflow.chat/domain/docqa/how-to-use-docqa.md).

# 如何使用文檔問答

前往領域點擊你新創建的文檔問答。

<div data-full-width="true"><figure><img src="/files/0zuOaHUGBYkxlENPwjP4" alt=""><figcaption><p>文檔問答頁面</p></figcaption></figure></div>

你將會看到可以上傳分為

* File: 目前僅限制5MB以內，可上傳PDF、CSV、JSON、HTML、DOCX
* Audio: 目前僅限制5MB以內，檔案格式為mp3; m4a; wav
* Dialog: 可上傳Q\&A的CSV

### 額外配置

* 過期時間
* 分類 (可以將問題更精確透過大型語言模型歸納該問題群簇)

### 檔案

* 不受限於字數。
* CSV可以選擇幾個項目為一組，可以一起做分塊
* JSON可以選擇幾個項目為一組，且可以使用JSON Pointer指定路徑
* HTML可以選擇傳送HTML檔案，也可以使用連結，支援XML(sitemap、rss、atom)，可以根據連結、標題、簡介做過濾(只會過濾XML裡面存在的項目，而非擷取網站後的內容)

### 語音

* 5MB，支援mp3、 m4a、wav

### 對話上下文

* 可以直接上傳問題和答案，整理成CSV即可
* CSV標題為type, sentence, session\_id\
  type: 可以選擇Q或A\
  sentence: 選擇你要的Q或A的內容\
  session\_id: 若同個session\_id會將相同的Q和A盡量保存在同一個分塊內


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.dmflow.chat/domain/docqa/how-to-use-docqa.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
