🔂

Asynchronous API and Stability Improvements

Version
0.1.0
Date
Jan 23, 2024
notion image
After some users ran into issues processing documents > 150 pages, we made some changes to our infrastructure to support the build out of an asynchronous API. This API allows you to make a single request to launch a large job, then poll our API endpoint for the job status until it is completed. We processed multiple thousand page documents in minutes with this update.
We also made some improvements to the stability and error handling of the API. We added more descriptive errors and have triggers saved such that new errors will be handled quickly.
 
Here is an example of usage for our API in Python.
import requests import time headers = {"authorization": "Bearer <token>"} response = requests.post( "https://api.reducto.ai/chunk_url_async", headers=headers, params={"document_url": "https://ragchunking.s3.amazonaws.com/sampledoc.pdf"}, ) response = response.json() while True: response = requests.get( "https://api.reducto.ai/" + response["Tracking"]["URL"], headers=headers, ) response = response.json() if response["status"] == "completed": break time.sleep(15) print(response["Results"])
 
Can read up on the full documentation for the API here:
Â