kb_retry_document
Retry ingestion of a failed document in place while keeping its document_id, re-reading the file, re-embedding pasted text, or re-fetching the web page.
Instructions
Re-run ingestion of a failed document in place, keeping its document_id: an uploaded file is
read again, pasted text re-embedded, a web page re-fetched. Returns {document_id, status};
kb_get_status reports the outcome. A failure on Unilytics' side usually succeeds on a retry; a
file that failed because of its content (unreadable, too long) fails the same way again, since
the retry reads the same file (a fixed file is a new upload: kb_create_direct_upload +
kb_add_file). Only a failed document can be retried, at most 10 times: a refusal is error
'invalid_request' with its document_id, document_status and a reason of BUSY (still
processing), NOT_FAILED, RETRY_LIMIT or CONFLICT (changed during the retry).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| document_id | Yes |