My attempt at learning RAGs using foundational models. This example takes a PDF, gives it to my local or OpenAI model so that I can ask questions about the PDF.
- Run the commands below to set up a virtual environment.
$ python3 -m venv .venv
$ source .venv/bin/activate
- Create a
.env
file with the following variables:
OPENAI_API_KEY = [ENTER YOUR OPENAI API KEY HERE]