# Text Classification

For text classification tasks, you can upload a dataset with labeled examples of text, where each example is labeled with a specific category. The categories can be anything that you want to classify your text into, such as sentiment (positive, negative, neutral), topics, or any other classification that is relevant to your use case.

Here is an example of what your dataset might look like:

| Prompt                                                | Completion |
| ----------------------------------------------------- | ---------- |
| This restaurant has great food and excellent service. | positive   |
| The package arrived late and in poor condition.       | negative   |
| I love this movie, it's one of my all-time favorites. | positive   |
| The customer support was unhelpful and rude.          | negative   |
| The weather is beautiful today.                       | neutral    |


---

# 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.texti.ai/data-labeling/text-classification.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.
