Ingest external content
Send documents from your own systems into the Orcha retrieval index.
If no connector exists for a system, send its content through the ingestion
API. Orcha indexes ingested documents for search_context with your own
citations and provenance. These documents work like documents from a
connected source.
Submit a document
Make the idempotencyKey from the source system, object, and revision.
Orcha then recognizes a replay. The content limit is 5 MB. The metadata
limit is 16 KB. This endpoint requires the write permission.
Replay behavior
You can safely call the endpoint from sync jobs that retry:
- New work returns
202 Accepted. - An identical replay returns
200 OKwithdeduplicated: true. - If you use a key again with different content, the endpoint returns
409 Conflict. Use a new key. Usually, a new key comes from a new revision.
Poll for status
The status is pending, indexing, indexed, or failed. The response
also has the content hash, indexing time, citation, and any available error.
When the status is indexed, search_context returns the document with
the citation that you supplied.