This application gives OpenAI's GPT-3 access to all the Harry Potter books (plus the associated Wikipedia plot summaries) and lets you ask it questions. You can give the model more butterbeer (i.e., increase the temperature π) to make its answers more unpredictable π».
Under the hood, we index the text using Faiss and streamline interactions with GPT using LangChain.
Note: To use the app, you'll need an OpenAI API key.
π https://huggingface.co/spaces/johnnygreco/the-gpt-who-lived
git clone https://github.com/johnnygreco/hpqa.git
cd hpqa
python -m pip install -e .
python app.py