Skip to content

WBerredo/Y2hhdGJvb2s

Repository files navigation

Setup

Check the live version or set it up locally as below:

  1. Create and fill in .env passing OPENAI_API_KEY. Ex:
OPENAI_API_KEY=sk-xxx
  1. Install Ruby and Rails.

  2. Install Ruby dependencies

bundle install
  1. Install postgres. For Mac users:
brew install postgresql
  1. Generate the embeddings for GPT-3 from a pdf file
rails r lib/create_embeddings.rb yourfile.pdf
  1. Create your database and the needed tables
rails db:migrate
  1. Install node and yarn

  2. Install node dependencies

yarn

Run locally

  1. Run your Rails app:
rails s
  1. On another tab, run Webpack dev server
bin/webpack-dev-server
  1. Acess the URL displayed on the first step and start questioning!

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

About

Chatbot to give answers as the author of a book

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published