# CSV File

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUePG2g1uolOJ5z0D6hMCnCeoy7lgdaMMpxPPd_5Iu286JVGL2WMBDfpCPSzAO_oRKPAtHmlyrlvENw3zDUNfun4DUe4QI-74txLKO4LJ8mpUw5Ym9kbYNTFkdnjvCYlxbSgbnMK4bRhO1cPBkSn0GJEtzG-Ly3o=s2048?key=0Vuv-rJx-rGDStWDzAwBDw" alt=""><figcaption><p>CSV File Type</p></figcaption></figure>

For **CSV File** uploads in Knowledge Management (KM), the system supports the file extension:

* **.csv** (Comma-Separated Values)

Users can upload **only one CSV file** for each KM entry, ensuring that data remains structured and focused on a single file per knowledge item.&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUdId9joj1XUVxzMVMIEApH6enDwE9VKHf5dN1dK5-myAAKDaWvJqxgphMuKlxQrzMV9ayZYLI7R1B8Obu8e91Oe8pqHaSLixrccGEUQpZJcC3Z3GQrGrJmVX1dGdPKFfi4Ac-4o_j1-Gn3Yld8k1fYreZnUS6am=s2048?key=0Vuv-rJx-rGDStWDzAwBDw" alt=""><figcaption><p>CSV Format</p></figcaption></figure>

For **CSV File validation** in the Knowledge Management (KM) system, the following headers are required:

* **id**\* (mandatory)
* **content**\* (mandatory)
* **title** (optional, auto-generated if not provided)
* **keywords** (optional, auto-generated if not provided)
* **questions** (optional, auto-generated if not provided)
* **metadata** (optional)

Note:

* **Mandatory fields**: `id` and `content` must be present in the CSV file for it to be valid.
* **Maximum no. of rows:** 3000 rows
* **Auto-generation**: If the user select 'generate titles, keywords, and questions', the system will automatically generate them. If users input these fields, their data will be appended.<br>

  <figure><img src="/files/dkGoCpKtwT843dtI4DwJ" alt="" width="375"><figcaption><p>Create CSV File Type</p></figcaption></figure>
* **Ignored fields**: Any additional headers outside of these specified ones will be ignored during the validation process.


---

# Agent Instructions: 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://docs.amitysolutions.com/amity-solutions/amity-bots-gen-ai-platform/knowledge-base/csv-file.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.
