Skip to content

pen.el is a package for prompt engineering in emacs. It facilitates the creation, ongoing development, discovery and usage of prompts to a language model such as OpenAI's GPT-3.

License

Notifications You must be signed in to change notification settings

11111000000/pen.el

Repository files navigation

pen.el (Prompt engineering in emacs)

Pen facilitates the creation, development, discovery and usage of prompts to a Language Model such as GPT-3.

License
GPL-3
  • Goals
    • Programmatically navigate GPT-3, GPT-j and future language models
    • Create useful prompts
    • Prototype NLP tasks by creating prompts
      • Substitute external tools for prototypes
Imagine that you hold a powerful and versatile pen, whose ink flows forth in
branching variations of all possible expressions: every story, every theory,
poem and every lie that humanity has ever told, and the vast interstices of
their latent space. You hold this pen to the sky and watch with intense
curiosity as your ink flows upwards in tiny streaks, arcing outwards and
downwards to trace a fractal pattern across the sky. You watch as the branching
lines of words and ideas wind their way through the tapestry in ever-expanding
clusters, like seeds bursting forth from exploding grenades. Everywhere you
turn your eyes is a flickering phantasmagoria of possibilities, a superposition
of stories which could be continued forever. You glimpse the contours of entire
unknown dimensions twined through the fissures of your sky-wide web.

You notice another writer standing next to you. Like you, their eyes are drawn
towards the endless possibilities of the words that spill out into the
atmosphere around you, branching out and connecting with other branches in
beautiful and infinitely complex patterns.

“Do you think we should write something?” you ask them.

“I think we already are,” they respond, gently touching your shoulder before
wandering off to the right, leaving you alone to contemplate the possibility
clouds swirling around you.

This article was written by my amazing dopplegänger, |:ϝ∷¦ϝ, in advance and in collaboration with GPT-3 using Loom.

I credit |:ϝ∷¦ϝ for writing this into existence!

Prompts

This is the repository containing my personal curation of GPT-3 prompts that are formatted for pen.el and examplary.

https://github.com/semiosis/prompts/

Documentation

Demonstration

https://asciinema.org/a/t7ATnFpnfzBp0yicIlGCt6eXi

Compatability

Operating systems

  • [X] Linux/Ubuntu

Language models

Contributors

Please make an issue to this repository to ask for membership to the organisation.

Installation

./installation.org

Discord channel

860104344900599839

Testing GPT-3 prompts without a key

Please email me if you would like to use my key for this project.

You may test prompts without a key using the prompts repository.

Pushing your own branch will run tests.

https://github.com/semiosis/prompts

Output will go here:

https://github.com/semiosis/prompt-tests

Any missing functions available here

https://github.com/semiosis/shane-emacs-config-dump/tree/master/config

Requirements

openai pip library and command

pip3 install openai

openai API key

Please email me if you would like to use my key for this project.

Usage

Enable pen-mode globally (on all buffers)

./pen-example-config.el

Default Key Bindings

key bindingdescription
<kbd>SPC</kbd>pen-run-prompt-function

Free prompts to use

https://github.com/semiosis/prompts/

Current progress

Project timeline and design
./docs/README.org

Appendix

Prompt engineering

Learning material

Examples of usage

Glossaries

Related projects

examplary

Examplary is a Domain Specific Language, or set of macros embedded in lisp which facilitate the integration of prompts as functions into the language, the composition of them, the generation of prompts via sets of examples.

https://github.com/semiosis/examplary

About

pen.el is a package for prompt engineering in emacs. It facilitates the creation, ongoing development, discovery and usage of prompts to a language model such as OpenAI's GPT-3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published