vectors.upload
Uploads one or more precomputed vectors to a vector namespace. Each vector length must match the namespacevector_dimension set at creation. Poll Upload Job Status with the returned job_id.
The
* means vectors is keyword-only. Extra fields on each vector (for example source) are stored as metadata for search filters.POST /namespaces/{namespace_name}/vectors — see Upload vectors
Parameters
string
required
Target vector namespace.
array
required
Non-empty array of vector objects.
string
required
Item id, unique within this namespace.
array
required
Array of finite numbers. Length must equal the namespace
vector_dimension.any
Optional additional keys on each vector are saved as metadata (for example
"source": "demo").Examples
Returns
string
"success" when the upload job was started.string
Human-readable result description.
string
Id of the async upload job. Poll vectors.upload_job_status with this value.
string
Namespace the vectors are being uploaded to.
number
Number of vectors accepted into the upload job.
number
Current total item count on the instance. Present on 409 item limit errors in
MoorchehApiError.body.number
Global item cap for this instance. Present on 409 item limit errors.
number
Number of new item ids in the request that would exceed the cap. Present on 409 item limit errors.
Example return value
Error Handling
Non-2xx responses raiseMoorchehApiError. Use e.is_item_limit_exceeded for 409 quota errors.