Data Operations
Upload Documents
Upload text documents to a text namespace. Embeddings are computed via Ollama. Returns an async job id.
POST
Overview
Upload one or more documents to a text namespace. Each document is embedded with the configured Ollama model and stored for semantic search. The upload runs asynchronously. Poll Upload job status with the returnedjob_id.
Any extra fields on each document object (for example
team, source) are stored as metadata and can be used in search filters.Path parameters
Target text namespace.
Headers
Must be
application/jsonBody
Non-empty array of document objects.
Item id, unique within this namespace.
Document text to embed and store.
Optional additional keys on each document are saved as metadata (for example
"team": "ai").Response fields
Request outcome.
"success" when the upload job was started; "failure" on error.Human-readable result or error description.
Id of the async upload job. Poll Upload job status with this value. Present when the upload job was started.
Namespace the documents are being uploaded to. Present when the upload job was started.
Number of documents accepted into the upload job. Present when the upload job was started.
Current total item count on the instance. Present on 409 item limit errors.
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.