> For the complete documentation index, see [llms.txt](https://docs-en.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-en.dmflow.chat/domain/docqa/how-to-use-docqa.md).

# How to Use Document Q\&A

Go to 'Domain' and click on the new Document Q\&A you created.

<figure><img src="https://docs.dmflow.chat/~gitbook/image?url=https%3A%2F%2F3496017944-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FQmub5EsobLbLj4OPaUUl%252Fuploads%252FlqBC32z18lYu3mMSOxej%252Fdmflow-docqa.png%3Falt%3Dmedia%26token%3De22ffba0-ac94-4602-9d4e-cbc5708d16f7&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=6d89631c&#x26;sv=2" alt=""><figcaption></figcaption></figure>

Document Q\&A Page

You will see the following upload options:

* File: Currently limited to 5MB, supports uploading PDF, CSV, JSON, HTML, DOCX.
* Audio: Currently limited to 5MB, file formats: mp3; m4a; wav.
* Dialog: Upload CSV for Q\&A.

Additional Configurations:

* Expiration Time
* Categories (can cluster questions more precisely through large language models)

File:

* No character limit.
* CSV allows selecting several items as a group for chunking.
* JSON allows selecting several items as a group and using JSON Pointer to specify paths.
* HTML allows uploading HTML files or using links; supports XML (sitemap, rss, atom); can filter based on links, titles, and descriptions (only filters items present in the XML, not the content after website extraction).

Audio:

* 5MB, supports mp3, m4a, wav.

Dialogue Context:

* You can directly upload questions and answers, organized into CSV format.
* CSV headers are type, sentence, session\_id.
  * type: can select Q or A.
  * sentence: select the content of your Q or A.
  * session\_id: if the session\_id is the same, the same Q and A will be kept in the same chunk as much as possible."


---

# 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-en.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.
