index_folder
Index all text files in a local folder by splitting into chunks and embedding them for retrieval. Replaces any existing index.
Instructions
Index all text files under a local folder for retrieval.
Reads supported text files recursively, splits them into overlapping chunks, and embeds each chunk into a multi-vector representation. Re-indexing replaces any previous index. Returns the number of files and chunks indexed.
Args: folder: Path to a local directory to index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |