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
Uploads documents from a JSON file to a text namespace. Embeddings are computed via Ollama. Returns an asyncjob_id — poll with moorcheh upload-job-status.
Synopsis
Options
| Flag | Required | Description |
|---|---|---|
--namespace-name | Yes | Target text namespace |
--documents-file | Yes | Path to JSON file with a documents array |
--base-url | No | Default http://localhost:8080 |
Documents file format
docs.json:
team) are stored as metadata.
Examples
Output
Prints JSON fromPOST /namespaces/{namespace_name}/documents:
"success" when the upload job was started; "failure" on error.Human-readable result or error description.
Async upload job id.
Target namespace.
Number of documents accepted into the job.
Current item count. Present on 409 item limit errors.
Global item cap. Present on 409 errors.
New ids that would exceed the cap. Present on 409 errors.
Example output
Exit codes
| Code | Meaning |
|---|---|
0 | Upload job started |
1 | API error (400, 404, 409, etc.) — error JSON on stdout, message on stderr |