Skip to main content

Overview

Uploads precomputed vectors from a JSON file to a vector namespace. Returns an async job_id — poll with moorcheh upload-job-status. Each vector length must match the namespace vector_dimension.

Synopsis

Options

Vectors file format

vectors.json:
The vector array length must match vector_dimension for the namespace (for example 5 or 768).

Examples

Output

Prints JSON from POST /namespaces/{namespace_name}/vectors:
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 vectors 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