# Stack Type

Whenever you create a stack . The first thing you would choose is whether you are building a Chat usecase or a Text Generation usecase. &#x20;

### Chat

This use case allows the model to chat with users, answering questions and providing information on a wide range of topics. It's perfect for customer support, tutoring, or just having a conversation.

### Text Generation

Here, the model generates text based on prompts given by the user. It can be used to create articles, stories, or any written content quickly and efficiently, starting from just a simple idea or sentence.<br>

<figure><img src="/files/roEoDRLAP6Ao6hdgNSGY" alt=""><figcaption></figcaption></figure>


---

# 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.aiplanet.com/genai-stack-1/quickstart/core-concepts/stack-type.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.
