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). Returns the parsed API response as a dict.
Method
API
POST /namespaces — see Create namespace
Payload
Unique name (alphanumeric,
-, _). You may also send this field as name."text" for document storage or "vector" for precomputed embeddings.Required when
type is "vector". Must be greater than 0. Must not be sent for text namespaces.Example
Returns
"success" when the namespace was created.Human-readable result description.
Name of the namespace that was created.
"text" or "vector".Fixed vector length for vector namespaces;
null for text namespaces.Example return value (text)
Errors
Non-2xx responses raiseMoorchehApiError. Use e.status_code and e.body for details.
| Status | Cause |
|---|---|
| 400 | Invalid name or vector_dimension rules |
| 409 | Namespace already exists |