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.
Overview
Creates a new namespace for documents (text) or precomputed embeddings (vector). Prints the API response as JSON to stdout.
Synopsis
Options
| Flag | Required | Description |
|---|---|---|
--name | Yes | Namespace name (alphanumeric, -, _) |
--type | Yes | text or vector |
--vector-dimension | For vector | Vector length (must be > 0) |
--base-url | No | Default http://localhost:8080 |
Examples
Output
Prints JSON fromPOST /namespaces:
"success" or "failure".Human-readable result or error description.
Name of the namespace that was created.
"text" or "vector".Fixed vector length for vector namespaces;
null for text namespaces.Example output (text)
Exit codes
| Code | Meaning |
|---|---|
0 | Namespace created |
1 | API error (400, 409, 500, etc.) — error JSON printed, message on stderr |