logo
Développement
Rechercher
Document

Document

Add

Type

image-20240220113337542

You can add various types of documents to become the knowledge of the Agent.

  1. Files: Supports multiple formats such as .doc/.docx/.pdf/.md/.txt.
  2. Spreadsheets: Supports formats such as .xls/.xlsx/.csv.
  3. URL: Provide the URL of the website, and the system will crawl the web content as Agent knowledge.
  4. TXT: Directly enter content online as knowledge.
  5. Q&A: Knowledge type structured as "Q&A (question and answer pair, that is, one question and one answer)".

Slice

Different types of documents provide different slicing methods. You can preview the slicing effect on the page.

If you don't understand slicing, it is recommended to use the system default values.

image-20240220114928210

For files, URLs, and TXT types, you can choose two different slicing methods:

  • By Token number: Slice based on the set Token number. For example, if it is set to "1000", a slice is generated for the document every 1000 Tokens.
  • By identifier: Slice based on the selected identifier. For example, if it is set to "\n", that is, a newline character, a slice is generated for the document every time a newline occurs.

image-20240220115152702

For spreadsheet type, you can choose multiple rows as the header. The system will slice the table data based on the "header + row" method.

image-20240220115529387

For Q&A type, there is no need to choose a slicing method, the system will automatically treat each Q&A as a slice.

Copy from other Agent

image-20240220115622742

You can copy the document from other Agents within the same organization to the current Agent, making it the knowledge document of this Agent.

Edit

image-20240220120102019

For documents that have been added, they can be edited online.

Documents of the spreadsheet type are not currently supported for online editing.

URL Update

Scheduled Update

alt text
Step 1: In Knowledge Addition Method, select Web/Website
Step 2: In Update Frequency, choose Repeat Execution
Step 3: Select the desired update frequency (can be modified later)

alt text
If you need to adjust the update frequency later, click "Scheduled Update" to modify it.

One-Time Update

alt text
Check the URL documents you want to update, then click the "Batch Update" button below.