GitHub - semiosis/pen.el: pen.el is a package for prompt engineering in emacs. I...
source link: https://github.com/semiosis/pen.el
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
pen.el
(Prompt engineering in emacs)
Pen
facilitates the creation,
development, discovery and usage of prompts to
a Language Model such as OpenAI’s GPT-3
or EleutherAI’s GPT-j
.
- Create elisp functions based on “Language Model” prompts
- Chain prompts together using keyboard macros and functions
- Interactively query, generate and transfrom both prose and code
- Use the LM as a search engine and a semantic search engine within emacs
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
- Programmatically navigate
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
Contributing
Please make an issue to this repository to ask for membership to the organisation.
openai
API key
Please email me if you would like to use my key for this project.
You will need to be inducted into the project.
Roles
You may select from one of the roles/tasks.
Installation
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
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.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK