Check the live version or set it up locally as below:
- Create and fill in
.env
passingOPENAI_API_KEY
. Ex:
OPENAI_API_KEY=sk-xxx
-
Install Ruby and Rails.
-
Install Ruby dependencies
bundle install
- Install postgres. For Mac users:
brew install postgresql
- Generate the embeddings for GPT-3 from a pdf file
rails r lib/create_embeddings.rb yourfile.pdf
- Create your database and the needed tables
rails db:migrate
yarn
- Run your Rails app:
rails s
- On another tab, run Webpack dev server
bin/webpack-dev-server
- Acess the URL displayed on the first step and start questioning!
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT