jobId to pass to startBuild once the upload completes.
Required fields: indexName, modelId, docCount, dimension
Example request
Upload body
PUT one binary body to uploadUrl. All integers are unsigned 32-bit little-endian.
Each document is an object with a string
id, a string text and an optional metadata object whose values are strings. IDs must be unique.
Moss embeds the text. Use a built-in modelId with dimension 0, and send no vectors. The built index answers text queries in the current SDKs.
You send the vectors. Use modelId custom with the length of your vectors as dimension, and append one vector per document. Query this index with your own query embedding, since Moss cannot embed a text query for vectors it did not make.
startBuild with the jobId.
Errors
400when a field is missing or invalid, whendocCountis above 100,000, or whendimensionis0withmodelIdcustom.409when an index with this name already exists. Delete it first, or choose another name.409when a build is already running for this index name.403MODEL_NOT_ALLOWEDwhen the organization cannot usemodelId.429USAGE_LIMIT_EXCEEDEDwhen the project is over its usage limit.