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

# Feature metadata

> LLM-generated, business-friendly descriptions for every dataset column. Powers chat grounding.

`feature_metadata` produces one short, human-readable description per column, plus a dataset-level summary. The descriptions are generated by Claude using column statistics and sample values as context. They show up in the dataset's Configuration sidebar, in column tooltips, and as **grounding** the chat agent can read when answering questions about your data.

On a re-run, the component reuses descriptions from earlier versions and calls the model only for columns that don't have one yet.

## Why it exists

Most dataset columns have names like `ord_amt_usd_ttl` or `mau_d30` — meaningful to whoever set up the warehouse, opaque to anyone else. Without semantic context:

* Summand has to guess what a column represents from the name alone.
* Chart suggestions and view-builder field labels read like database internals.
* New teammates can't navigate the dataset without a SME walking them through it.

`feature_metadata` is the bridge. The Anthropic API call sees each column's name, dtype and basic stats, plus example values for categorical columns, and returns a one- to two-sentence plain-English description plus a dataset-level summary.

## Inputs

| Input | Type | Required | Description |
| - | - | - | - |
| `columns` | column list | | Up to 10 columns to describe in this run. If omitted, the component describes the dataset's first 25 columns. |

## Output shape

```json theme={null}
{
  "features": ["order_id", "ord_amt_usd_ttl", "ship_country"],
  "context": {
    "dataset_context": "E-commerce orders for an enterprise SaaS company. Each row is an order placed by a customer, with payment, geography, and post-checkout fulfilment status.",
    "feature_contexts": {
      "order_id": "Unique identifier for the order. Always populated.",
      "ord_amt_usd_ttl": "Total order amount in USD, including tax and shipping.",
      "ship_country": "ISO 3166-1 alpha-2 country code where the order shipped."
    },
    "feature_contexts_array": [
      { "feature_name": "order_id", "description": "Unique identifier for the order. Always populated." }
    ]
  },
  "categoricalMappings": { ... }
}
```

`context.dataset_context` is the dataset-level summary; `context.feature_contexts` is keyed by column name, and `features` lists the described columns. The artifact is `feature_metadata.json`.

## Display

The Feature metadata component ships with a bespoke React viewer (`FeatureMetadataView`):

* **Dataset context** rendered at the top.
* **Per-column descriptions** in a sortable table alongside the column's dtype and missingness.

## Where the descriptions show up

* **Dataset detail → Components tab** — viewable like any other component.
* **Configuration sidebar** — column tooltips show the description.
* **View builder** — the field picker shows the description as a hint under each column name.
* **Summand chat** — the agent reads descriptions for the columns a question touches, grounding answers in business meaning rather than column-name guesses.

## Filtering from chat

Summand can ask for a specific column's metadata:

```text theme={null}
analyze({ component: "feature_metadata", target: ..., params: { feature_name: "ord_amt_usd_ttl" } })
```

Returns just that column's description plus the dataset-level context.

## Compute profile

| Profile | Memory | Timeout |
| - | - | - |
| Lambda | 2 GB | 600 s |

The long timeout is because the component calls the Anthropic API for descriptions. It's still typically under a minute end-to-end; the timeout is there to absorb occasional API slowness.

## Privacy

Column descriptions are generated by sending the Anthropic API a small payload: the row count, and for each column its name, dtype, missing share, distinct count (capped at 10), numeric minimum, maximum and mean, and example values for categorical columns. The full dataset is **not** sent. Anthropic is a listed subprocessor — see [Compliance](https://docs.summand.com/enterprise/compliance.md) for the data-handling agreement.

If your organization's policies don't allow sending column samples to external APIs, leave this component out of your experiments and contact [support@intelligible.ai](mailto:support@intelligible.ai).

## Refresh

Re-running the component keeps existing descriptions and fills in columns that don't have one. Descriptions you write yourself on the dataset's **Schema** tab are stored separately, and re-running the component doesn't change them. Run it from the Components tab or include it in a scheduled experiment.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.