Skip to main content

Overview

Uploads documents from a JSON file to a text namespace. Embeddings are computed via Ollama. Returns an async job_id — poll with moorcheh upload-job-status.

Synopsis

Options

Documents file format

docs.json:
Extra keys on each document (for example team) are stored as metadata.

Examples

Output

Prints JSON from POST /namespaces/{namespace_name}/documents:
string
"success" when the upload job was started; "failure" on error.
string
Human-readable result or error description.
string
Async upload job id.
string
Target namespace.
number
Number of documents accepted into the job.
number
Current item count. Present on 409 item limit errors.
number
Global item cap. Present on 409 errors.
number
New ids that would exceed the cap. Present on 409 errors.
Example output

Exit codes