2 hours ago · 43 min read8593 words · Tech · hide

Recently I worked on a project where I had to push 6,156 scanned PDF documents through a vision-capable LLM to extract 10 structured fields per document. The interesting part of this process is that nobody was sitting in front of a browser waiting for this task to finish. So the process didn’t need to be particularly fast or interactive. I just needed the whole pile processed accurately and the results to be saved somewhere when it was done. My first instinct was simply to write a script that loops over the source files (perhaps with some configurable level of concurrency) and calls the inference API on each document with a very specific prompt. It would have worked, except I would have ended up paying full price per token, fighting rate limits and throttling, and babysitting retries for hours. Instead, I stumbled onto a not-so-widely-known feature of Amazon Bedrock called batch inference, which lets you run large offline LLM workloads at roughly half the on-demand price while AWS…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town