项目作者: maraoz

项目描述 :
A collaborative collection of open-source safe GPT-3 prompts that work well
高级语言: Python
项目地址: git://github.com/maraoz/gpt-scrolls.git
创建时间: 2020-07-22T23:05:12Z
项目社区:https://github.com/maraoz/gpt-scrolls

开源协议:MIT License

下载


gpt-scrolls

A collaborative collection of open-source safe GPT-3 prompts that work well

Feel free to contribute your prompts!

Getting Started

To use gpt-scrolls, you’ll need access to the OpenAI API. If you haven’t, sign up for the beta.

  1. $ pip install gpt-scrolls
  2. $ export OPENAI_API_KEY=...
  3. $ python -c "import scrolls; print(scrolls.run('creative/philosopher'))"
  4. I perused with interest and some confusion the very detailed description of autonomous society as envisioned by the creators of this simulation, for it reminded me of the doomed civilization of the Onos; they too desired self-replicating programs, a necessary foundation in real-space for artificial intelligence; and the created what they thought was self-replicating, except that they had no command over the experiment; it was uncontrollable, and indeed uncontrollable in about 90 minutes.
  5. $ python -c "import scrolls; print(scrolls.run('creative/business-ideas'))"
  6. Last Mile - Same day delivery service that picks and takes out the trash and delivers

Browse all the available scrolls.

Running scrolls in your own app

  1. import scrolls
  2. idea = scrolls.run('creative/business-ideas')
  3. print(idea)

Running locally

If you want to use gpt-scrolls without pip by cloning the repo:

  1. $ git clone git@github.com:maraoz/gpt-scrolls.git
  2. $ cd gpt-scrolls/
  3. $ python3 -m venv .scrolls-env
  4. $ source .scrolls-env/bin/activate
  5. (.scrolls-env) $ pip install -r requirements.txt
  6. (.scrolls-env) $ export OPENAI_API_KEY=...
  7. (.scrolls-env) $ python scrolls/run.py "top10/women"
  8. ~~~Rosa Parks
  9. 2. ~~~Cleopatra
  10. 3. ~~~Joan of Arc
  11. 4. ~~~Madonna
  12. 5. ~~~Queen Elizabeth I
  13. 6. ~~~Elizabeth II
  14. 7. ~~~Tamar
  15. 8. ~~~Billie Jean King
  16. 9. ~~~Catherine the Great
  17. 10. ~~~Elizabeth I

Note: I’m planning to turn this into a easy-to-use CLI tool.

Design goals

gpt-scroll prompts should aim to be:

  • effective: they should reliably produce desired classes of outpupts
  • efficient: they should be as short as possible
  • safe: they should minimize appearance of toxic/harmful output

Have this in mind for any contribution. (eg: if you find that a prompt works equally well without one example, you might submit a PR to remove that example, citing efficiency)