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

# CreateIndexFromFilesOptions

[@moss-dev/moss](../api) / CreateIndexFromFilesOptions

# Interface: CreateIndexFromFilesOptions

Options for creating an index from files via the parse pipeline.

## Properties

| Property        | Type                                 | Description                                                                                                                             |
| --------------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| `modelId?`      | `"moss-minilm"` \| `"moss-mediumlm"` | Embedding model to use. Defaults to `"moss-minilm"`. `"custom"` is not supported - the parse pipeline generates embeddings server-side. |
| `parseOptions?` | [`ParseOptions`](./ParseOptions)     | Extraction controls, including OCR mode. Omit for server defaults.                                                                      |
| `onProgress?`   | (`progress`) => `void`               | Callback invoked with progress updates (\~every 2s) while the server is processing.                                                     |
