> ## Documentation Index
> Fetch the complete documentation index at: https://docs.graphext.com/llms.txt
> Use this file to discover all available pages before exploring further.

# describe_clusters

> Describe your clusters from their given relevant TF-IDF terms using OpenAI. 

## Usage

The following example shows how the step can be used in a recipe.

<Accordion title="Examples" icon="code" defaultOpen="true">
  <Tabs>
    <Tab title="Example 1">
      Get description from tf-idf cluster keywords

      ```stan theme={null}
      describe_clusters(ds.tfidf_clusters) -> (ds.description)
      ```
    </Tab>

    <Tab title="Signature">
      General syntax for using the step in a recipe. Shows the inputs and outputs the step is expected to receive and will produce respectively. For futher details see sections below.

      ```stan theme={null}
      describe_clusters(tfidf: category, {
          "param": value,
          ...
      }) -> (descriptions: category)
      ```
    </Tab>
  </Tabs>
</Accordion>

## Inputs & Outputs

The following are the inputs expected by the step and the outputs it produces. These are generally
columns (`ds.first_name`), datasets (`ds` or `ds[["first_name", "last_name"]]`) or models (referenced
by name e.g. `"churn-clf"`).

<Accordion title="Inputs" icon="right-to-bracket">
  <ParamField path="tfidf" type="column[category]" required>
    TF-IDF keywords from the clusters to describe in natural language.
  </ParamField>
</Accordion>

<Accordion title="Outputs" icon="right-from-bracket">
  <ParamField path="descriptions" type="column[category]" required />
</Accordion>

## Configuration

The following parameters can be used to configure the behaviour of the step by including them in
a json object as the last "input" to the step, i.e. `step(..., {"param": "value", ...}) -> (output)`.

<Accordion title="Parameters" defaultOpen="true" icon="sliders">
  <ParamField path="language" type="string" default="Same as tf-idf keywords">
    Language.
    Language you wish to use. Defaults to the TF-IDF keywords.
  </ParamField>

  <ParamField path="model" type="object">
    Model Configuration.
    Configuration for OpenAI's model.

    <Accordion title="Properties">
      <ParamField path="id" type="string" default="gpt-4.1-nano">
        OpenAI model to choose.

        Values must be one of the following:

        `gpt-4.1` `gpt-4.1-mini` `gpt-4.1-nano` `gpt-5-mini` `gpt-5-nano` `o4-mini`
      </ParamField>

      <ParamField path="temperature" type="number" default="0.7">
        Temperature. Higher means more creativity, but also makes the model more likely to hallucinate. Lower temperature yields more deterministic results. Ignored for reasoning models (gpt-5-mini, gpt-5-nano, o4-mini).

        Values must be in the following range:

        ```javascript theme={null}
        0 ≤ temperature ≤ 1
        ```
      </ParamField>
    </Accordion>
  </ParamField>
</Accordion>
