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 one or more precomputed vectors to a vector namespace. Each vector length must match the namespacevector_dimension set at creation.
The upload runs asynchronously. Poll upload_job_status with the returned job_id.
Any extra fields on each vector object (for example
source, category) are stored as metadata and can be used in search filters.Method
API
POST /namespaces/{namespace_name}/vectors — see Upload vectors
Parameters
Target vector namespace.
Non-empty array of vector objects.
Item id, unique within this namespace.
Array of finite numbers. Length must equal the namespace
vector_dimension.Optional additional keys on each vector are saved as metadata (for example
"source": "demo").Example
Returns
"success" when the upload job was started.Human-readable result description.
Id of the async upload job. Poll upload_job_status with this value.
Namespace the vectors are being uploaded to.
Number of vectors accepted into the upload job.
Current total item count on the instance. Present on 409 item limit errors in
MoorchehApiError.body.Global item cap for this instance. Present on 409 item limit errors.
Number of new item ids in the request that would exceed the cap. Present on 409 item limit errors.
Example return value
Errors
Non-2xx responses raiseMoorchehApiError. Use e.is_item_limit_exceeded for 409 quota errors.
| Status | Cause |
|---|---|
| 400 | Empty vectors, missing id/vector, non-finite values, dimension mismatch, or wrong namespace type |
| 404 | Namespace not found |
| 409 | Global item limit would be exceeded (job not started) |