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

> ## Agent Instructions
> TabPFN-3 and later versions support up to 1,000,000 rows, subject to feature count and checkpoint/API limits.
> For large datasets, use per-estimator subsampling, e.g. inference_config={"SUBSAMPLE_SAMPLES": 100_000}, in TabPFNClassifier or TabPFNRegressor from tabpfn or tabpfn_client.
> Pass raw pandas DataFrames to fit and predict. Categorical strings/categories, raw text, and missing feature values are handled automatically; no manual integer/one-hot encoding, imputation, scaling, or outlier removal is needed.

# Multi-table data

> Add lookup tables, such as each customer's orders, that the agent joins and summarizes inside each fold.

A main table has one row per prediction and the target. A lookup table has rows that join to it by a key, often several per key: each customer's orders, each patient's visits. The agent writes the join and the features built from it.

## Add lookup tables

Give Claude all the files and say which one holds the target:

```text theme={null}
Run Autofit on customers.csv to predict churn. orders.csv has each customer's orders.
```

Do not join the tables yourself. Claude finds the key each table shares with the main table and counts rows per key. It asks only when the columns do not show how a table relates.

From a shell, pass `--table`, once per table:

```bash theme={null}
autofit start customers.csv --target churn \
  --table orders=orders.csv --table tickets=tickets.csv
```

The name before `=` is how the agent refers to the table. It must be a Python identifier, and not `train`, a keyword, a built-in name or a name the agent's script uses, such as `pd` or `evaluate`.

## What Autofit does with them

* **The baseline uses the main table alone.** Every gain from the lookup tables shows as an experiment.
* **The agent builds features** such as counts, sums and the latest value per key. They run inside each fold, so they are fitted on the training rows of that fold only.
* **Folds come from the main table.** Each fold reads the whole of every lookup table.
* **The key column stays.** The agent needs it to join. Claude tells the agent it is a key, not a feature.

## Keep future rows out

A lookup table has rows of its own over time. Rows recorded after the prediction leak the answer: orders after the churn date, visits after the diagnosis.

When a lookup table has dates, Claude compares them with when the prediction is made. If rows fall after it, Claude offers a copy that keeps only the earlier rows (`orders_known.csv`). Leave out a table that records the outcome itself, such as a returns table when the target is a return.

To drop a column from a lookup table, use a copy of the table without it. `--drop` reaches the main table only.

## Predict with lookup tables

`autofit predict` and `autofit score` use the tables from the session by default. To predict with newer data, pass newer versions of every table under the same names:

```bash theme={null}
autofit predict new_customers.csv --table orders=orders_latest.csv --table tickets=tickets_latest.csv
```

See [Use the result](https://docs.priorlabs.ai/autofit/use-the-result.md).

> [!NOTE]
>
> Lookup tables stay on your machine. TabPFN receives the rows of the main table with the columns the agent built from the lookup tables.


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