How to prepare your PDF docs to Smabbler API RAG using Open-Parse?
Described PDF docs processing will be presented using the Open-Parse lib.
Following example will be done using Python, due to Open-Parse native support for this language.
Getting started
Collect documents: gather all PDF documents you wish to process and place them in a single directory.
Install Open-Parse:
Data processing
To process the documents, run the following code in the directory containing your PDFs. All PDF documents in the directory will be processed, and the output will be saved to a CSV file.
Document text will be parsed up to 20,000 characters due to Smabbler's maximum text length limit.
As a result, file-export.csv file will be produced. This file can be used in next steps of RAG model building.