Skip to main content

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

moorcheh namespace-create --name NAME --type text|vector [options]

Options

FlagRequiredDescription
--nameYesNamespace name (alphanumeric, -, _)
--typeYestext or vector
--vector-dimensionFor vectorVector length (must be > 0)
--base-urlNoDefault http://localhost:8080

Examples

moorcheh namespace-create --name my-documents --type text

moorcheh namespace-create --name my-embeddings --type vector --vector-dimension 768

moorcheh namespace-create --name my-documents --type text --base-url http://localhost:8081

Output

Prints JSON from POST /namespaces:
status
string
"success" or "failure".
message
string
Human-readable result or error description.
namespace_name
string
Name of the namespace that was created.
type
string
"text" or "vector".
vector_dimension
number | null
Fixed vector length for vector namespaces; null for text namespaces.
Example output (text)
{
  "status": "success",
  "message": "Namespace 'my-documents' created successfully.",
  "namespace_name": "my-documents",
  "type": "text",
  "vector_dimension": null
}

Exit codes

CodeMeaning
0Namespace created
1API error (400, 409, 500, etc.) — error JSON printed, message on stderr