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

# moorcheh-edge upload-vectors

> Upload precomputed vectors (vector store).

## Synopsis

```bash theme={null}
moorcheh-edge upload-vectors --vectors-file PATH [--base-url URL]
```

## Options

| Flag             | Required | Description                                    |
| ---------------- | -------- | ---------------------------------------------- |
| `--vectors-file` | Yes      | Path to JSON with `{"vectors": [...]}`         |
| `--base-url`     | No       | API base URL (default `http://localhost:8080`) |

## File format

```json theme={null}
{
  "vectors": [
    {
      "id": "item-1",
      "vector": [0.01, -0.02, "... match allowed dimension ..."],
      "text": "Optional label for search results"
    }
  ]
}
```

Allowed dimensions on first upload: **128, 256, 384, 768, 1024, 1536**.

<Warning>
  Cannot upload vectors to a **text** store (or vice versa). Run `moorcheh-edge clear-store` first to switch modes.
</Warning>

## Example

```bash theme={null}
moorcheh-edge upload-vectors --vectors-file vectors.json
```

See [API: Upload](/api-references/upload).
