ask questions about the top 25 science fiction movies using a RAG pipeline
- load_images.py - Script to extract images and text from the PDF
- add_images_database.py - Script to add image descriptions to the vector database
- add_pages_database.py - Script to add page text to the vector database
- query.ipynb - Jupyter notebook with examples of querying the database
- Clone the repository
- Install the dependencies
pip install -r requirements.txt
- put the openai api key in the .env file
- run the code
python load_images.py
- run the code
python add_images_database.py
- run the code
python add_pages_database.py
- run the jupyter notebook
query.ipynb