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

# Column functions

> Run inference, tokenization, and vector operations over SQL columns.

Column functions run inference, tokenization, and vector operations over SQL columns and return a column with one value per row. Use them in `SELECT` and `WHERE` like any other SQL function. See [SQL data types](https://docs.chowder.ai/reference/sql-types.md) for type names, aliases, and inference output schemas.

| Function | Returns | Use |
| - | - | - |
| [`infer`](https://docs.chowder.ai/reference/column-functions/infer) | AI envelope with a typed `output` | Classify, answer, summarize, or extract structure from text and images |
| [`embed`](https://docs.chowder.ai/reference/column-functions/embed) | AI envelope with a vector embedding in `output` | Generate vector embeddings from text and images |
| [`tokens`](https://docs.chowder.ai/reference/column-functions/tokens) | `BIGINT` | Count tokens |
| [`tokenize`](https://docs.chowder.ai/reference/column-functions/tokenize) | `ARRAY<VARCHAR>` | Inspect token strings |
| [`sim`](https://docs.chowder.ai/reference/column-functions/sim) | `DOUBLE` | Compute cosine similarity between two vectors |
| [`neighbors`](https://docs.chowder.ai/reference/column-functions/neighbors) | `ARRAY<STRUCT>` | Find the nearest neighbors of each row |
| [`clusterize`](https://docs.chowder.ai/reference/column-functions/clusterize) | `BIGINT` | Cluster rows by vector similarity |


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