> For the complete documentation index, see [llms.txt](https://docs.raga.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.raga.ai/ragaai-catalyst/concepts/uploading-data/chat-dataset/prompt-format.md).

# Prompt Format

In addition to uploading in chat format, users can upload conversations in a simplified **Prompt-Response format**, where each interaction is recorded in a single row. Catalyst will automatically structure the data into a full chat history, allowing users to access all functionalities for chat analysis and processing.

The Prompt-Response dataset should follow the schema below, with **Function**, **Timestamp**, and **Model Name** columns as optional fields:

| **Chat ID** | **Chat Seq** | **Prompt**    | **Response**                           | **Function** | **Timestamp**    | **Model Name** |
| ----------- | ------------ | ------------- | -------------------------------------- | ------------ | ---------------- | -------------- |
| 1           | 1            | Hello         | Hi there!                              | N/A          | 15-10-2024 10:00 | Model\_XYZ     |
| 1           | 2            | What is AI?   | AI stands for Artificial Intelligence. | N/A          | 15-10-2024 10:01 | Model\_XYZ     |
| 2           | 1            | Book a ticket | Your ticket has been booked.           |              |                  | Model\_ABC     |

**Columns:**

1. **Chat ID** (Required): A unique identifier for each conversation, grouping all rows related to a single chat session.
2. **Chat Seq** (Required): A sequence number for each prompt-response pair within a chat session, maintaining the correct conversation flow.
3. **Prompt** : The message or query initiated by the user or customer.
4. **Response** : The assistant’s reply to the user’s prompt.
5. **Function** (Optional): The name of any function called in response to the prompt (e.g., `check_balance`, `book_ticket`). If no function is used, this field can be left empty or marked as "N/A".
6. **Timestamp** (Optional): The exact date and time of each interaction in the format `DD-MM-YYYY HH:MM`. This field can be left blank if precise timing is unnecessary for your analysis.
7. **Model Name** (Optional Metadata): The name or identifier of the AI model used to generate the response. This metadata allows tracking of different model responses and is optional.

{% file src="/files/ZhbT49bvfawWLrbF4PyP" %}
Sample CSV
{% endfile %}


---

# 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.raga.ai/ragaai-catalyst/concepts/uploading-data/chat-dataset/prompt-format.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.
