Before running the following code, ensure you have correctly set the necessary variables:
api_key: your LlamaIndex API Key, as obtained in the "Getting Started" section.
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 2 000 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.