Converting PDFs to PNG and sending into OpenAI API

We are trying to build a process where OpenAI puts out the data from PDF documents with different page length, containing analysis data.

Therefore the PDFs are uploaded into a google drive, converted to a PNG and sent to the OpenAI API. The result is then sent into a google docs for further processing.

Our challenge as of right now is to ensure that the PNGs generated from a PDF are forwarded as a bundle to the OpenAI API.

As of right now the process is not running smooth and we are trying to figure out what to improve. (Sorry for the bad description, we are new to Make.)

Anyone already built the PDF to Open AI process? Happy to hear from you.

Welcome to the Make community!

You may want to try

Also, every result (item/record) from a search/match/convert module will output a bundle. To “combine” them into a single structure, you’ll need to use an aggregator of some sort.

Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module. The next popular aggregator is the Text Aggregator which is very flexible and has applies to many use-cases.

So, my guess is you need an aggregator somewhere, and even another module to convert the image to text, or convert PDF directly to text (so you can do away with an aggregator)!

samliew – request private consultation

Join the Make Fans Discord server to chat with other makers!

3 Likes

Thank you! I am taking inspiration out of this! Need to do some testing now. :slight_smile:

1 Like