> ## 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.

# CreateIndexOptions

> JavaScript index creation options for choosing an embedding model and receiving build progress updates.

[@moss-js/moss](https://docs.moss.dev/docs/reference/js/api.md) / CreateIndexOptions

Options for creating an index.

## Properties

| Property | Type | Description |
| - | - | - |
| `modelId?` | `string` | Embedding model to use. Defaults to "moss-minilm", or "custom" if documents have pre-computed embeddings. |
| `onProgress?` | (`progress`) => `void` | Callback invoked with progress updates (\~every 2s) while the server is processing. |


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