Index Dataset for RAG
dataset.indexIndex a dataset so text chunks become searchable. Splits content into RAG-ready chunks and generates embeddings for semantic retrieval.
Instructions
Trigger semantic indexing for a dataset — required before using dataset.chunks (Pro+ plan).
Starts an async indexing job that splits the dataset into RAG-ready text chunks, generates embeddings, and stores them for semantic search. Indexing is idempotent: calling it again on an already-indexed dataset re-indexes with fresh embeddings. Indexing typically completes in 10–60 seconds depending on dataset size. After indexing, use dataset.chunks(dataset_id) to retrieve the text chunks.
Args: dataset_id: ID of the built dataset to index (from job.status after dataset.build).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | ||
| isError | No | ||
| message | No | ||
| dataset_id | No | ||
| index_hint | No |