Skip to content

johnnygreco/hpqa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

hpqa – πŸͺ„ Harry Potter QA with GPT πŸ€–

harry-potter-sorcerer-stone


Overview

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.

Try the app on πŸ€— Spaces

πŸ‘‰ https://huggingface.co/spaces/johnnygreco/the-gpt-who-lived

Installation

git clone https://github.com/johnnygreco/hpqa.git
cd hpqa
python -m pip install -e .

Running the app

python app.py
gradio-demo

About

πŸͺ„ Harry Potter QA with GPT πŸ€–

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages