In the corporate world slides are everywhere, it is often used as a way to communicate idea and achievements. Making slides is something most people do every week and could be very time consuming.
Python has a library called Python-pptx which allows users to programmatically create PowerPoint presentations. In this project we will the Recent threats in the Red Sea pdf file, published by the European Parliament in 2024, as information source to create a pptx file with the assistant of LLM.
The pipeline is as follows:
- We make a query to retrieve information from a vector database.
- We feed a first LLM to create a bullet point list.
- With that list, we ask a second LLM to create Python-pptx code.
- We execute that code to create a pptx file.
This project is a proof of concept. It needs a better visual and design development.
First, we need to store the OpenAI API KEY in a .env
file to load it with the dotenv library and use it as an environment variable. In notebooks
folder there is a jupyter notebook with a step by step explanation of the project.